/** * Check to see if any {@link CoveredColumn} in <tt>this</tt> matches the given family * @param family to check * @return <tt>true</tt> if any column covers the family */ public boolean matches(String family) { for (CoveredColumn column : columns) { if (column.matchesFamily(family)) { return true; } } return false; }
/** * Check to see if any column matches the family/qualifier pair * @param family family to match against * @param qualifier qualifier to match, can be <tt>null</tt>, in which case we match all * qualifiers * @return <tt>true</tt> if any column matches, <tt>false</tt> otherwise */ public boolean matches(byte[] family, byte[] qualifier) { // families are always printable characters String fam = Bytes.toString(family); for (CoveredColumn column : columns) { if (column.matchesFamily(fam)) { // check the qualifier if (column.matchesQualifier(qualifier)) { return true; } } } return false; }
if (ref.matchesFamily(next.getFamilyArray(), next.getFamilyOffset(), next.getFamilyLength()) && ref.matchesQualifier(next.getQualifierArray(), next.getQualifierOffset(), while ((next = kvs.next()) != null) { if (!ref.matchesFamily(next.getFamilyArray(), next.getFamilyOffset(), next.getFamilyLength())) { break;