if (familyLayout.getLocalityGroup().getFamilyMap().size() > 1) {
localityGroup.getFamilyMap().get(localityGroup.getFamilyIdNameMap().get(familyID)); if (family == null) { throw new NoSuchColumnException(String.format(
(reference != null) ? reference.getFamilyMap().get(refFName) : null; if (isRename && (refFLayout == null)) { throw new InvalidLayoutException(String.format(
refFamilyLayout = refLGLayout.getFamilyMap().get(refFamilyName); final String refFamilyName = refLGLayout.getFamilyIdNameMap().get(familyId); if (refFamilyName != null) { refFamilyLayout = refLGLayout.getFamilyMap().get(refFamilyName);
localityGroup.getFamilyMap().get(localityGroup.getFamilyIdNameMap().get(familyID)); if (family == null) { throw new NoSuchColumnException(String.format(
if (familyLayout.getLocalityGroup().getFamilyMap().size() > 1) {
/** {@inheritDoc} */ @Override public void deleteFamily(EntityId entityId, String family, long upToTimestamp) throws IOException { final HBaseFijiTableWriter.WriterLayoutCapsule capsule = mWriterLayoutCapsule; final FamilyLayout familyLayout = capsule.getLayout().getFamilyMap().get(family); if (null == familyLayout) { throw new NoSuchColumnException(String.format("Family '%s' not found.", family)); } if (familyLayout.getLocalityGroup().getFamilyMap().size() > 1) { // There are multiple families within the locality group, so we need to be clever. if (familyLayout.isGroupType()) { deleteGroupFamily(entityId, familyLayout, upToTimestamp); } else if (familyLayout.isMapType()) { deleteMapFamily(entityId, familyLayout, upToTimestamp); } else { throw new RuntimeException("Internal error: family is neither map-type nor group-type."); } return; } // The only data in this HBase family is the one Fiji family, so we can delete everything. final HBaseColumnName hbaseColumnName = capsule.getColumnNameTranslator() .toHBaseColumnName(FijiColumnName.create(family)); final Delete delete = new Delete(entityId.getHBaseRowKey()); delete.deleteFamily(hbaseColumnName.getFamily(), upToTimestamp); // Buffer the delete. updateBuffer(delete); }