/** {@inheritDoc} */ @Override public int hashCode() { return getId(); } }
/** * Assigns the ID of the locality group. * * @param cid the ID of the locality group. * @return this locality group. */ private LocalityGroupLayout setId(ColumnId cid) { Preconditions.checkArgument(cid.getId() >= 1); Preconditions.checkState(null == mId); mId = cid; mDesc.setId(cid.getId()); return this; }
if (localityGroup == null) { throw new NoSuchColumnException(String.format("No locality group with ID %s in table %s.", localityGroupID.getId(), mLayout.getName())); throw new NoSuchColumnException(String.format( "No family with ID %s in locality group %s of table %s.", familyID.getId(), localityGroup.getName(), mLayout.getName())); throw new NoSuchColumnException(String.format( "No column with ID %s in family %s of table %s.", qualifierID.getId(), family.getName(), mLayout.getName()));
throw new NoSuchColumnException(String.format( "No family with ID %s in locality group %s of table %s.", familyID.getId(), localityGroup.getName(), mLayout.getName())); throw new NoSuchColumnException(String.format( "No column with ID %s in family %s of table %s.", qualifierID.getId(), family.getName(), mLayout.getName()));
desc.setId(mId.getId());
lgDesc.setId(mId.getId());
familyDesc.setId(mId.getId());