/** @return the primary name for the family. */ public String getName() { return mDesc.getName(); }
throw new IllegalArgumentException(String.format( "Fiji Cassandra does not support counter map type families. Family: %s, table: %s.", layout.getName(), family.getName())); "Fiji Cassandra does not support counter columns." + " Table: %s, family: %s, column: %s.", layout.getName(), family.getName(), column.getName()));
/** * Return the corresponding mutable family descriptor of the provided column family. * The family descriptor comes from a nested record within the mutable table layout descriptor. * Therefore, mutating this family descriptor effectively mutates the table layout descriptor. * * @param family whole family descriptor to extract * @return the family descriptor * @throws NoSuchColumnException when family not found */ private FamilyDesc getFamilyDesc(final FijiColumnName family) throws NoSuchColumnException { // Traverse through the locality groups to locate family. for (LocalityGroupDesc lgd : mDescBuilder.getLocalityGroups()) { for (FamilyDesc fd : lgd.getFamilies()) { if (fd.getName().equals(family.getFamily())) { return fd; } for (String alias : fd.getAliases()) { if (alias.equals(family.getFamily())) { return fd; } } } } throw new NoSuchColumnException(String.format( "Table '%s' has no family '%s'.", mDescBuilder.getName(), family.getFamily())); } /**
familyNames.add(familyDesc.getName()); familyNames.addAll(familyDesc.getAliases()); mNames = ImmutableSet.copyOf(familyNames); if (!isValidName(familyDesc.getName())) { throw new InvalidLayoutException(String.format( "Invalid family name: '%s'.", familyDesc.getName())); throw new InvalidLayoutException(String.format( "Deleted column '%s:%s' does not exist in reference layout.", mDesc.getName(), refCName));
final FamilyDesc familyDesc = itFamilyDesc.next(); final boolean isRename = (familyDesc.getRenamedFrom() != null); final String refFName = isRename ? familyDesc.getRenamedFrom() : familyDesc.getName(); familyDesc.setRenamedFrom(null); if (isRename && (reference == null)) {