Exemplo n.º 1
0
 public static boolean matchingFamily(final Cell left, final Cell right) {
   return Bytes.equals(
       left.getFamilyArray(),
       left.getFamilyOffset(),
       left.getFamilyLength(),
       right.getFamilyArray(),
       right.getFamilyOffset(),
       right.getFamilyLength());
 }
Exemplo n.º 2
0
 public static int copyFamilyTo(Cell cell, byte[] destination, int destinationOffset) {
   System.arraycopy(
       cell.getFamilyArray(),
       cell.getFamilyOffset(),
       destination,
       destinationOffset,
       cell.getFamilyLength());
   return destinationOffset + cell.getFamilyLength();
 }
Exemplo n.º 3
0
 public static ByteRange fillFamilyRange(Cell cell, ByteRange range) {
   return range.set(cell.getFamilyArray(), cell.getFamilyOffset(), cell.getFamilyLength());
 }
Exemplo n.º 4
0
 public static boolean matchingFamily(
     final Cell left, final byte[] buf, final int offset, final int length) {
   return Bytes.equals(
       left.getFamilyArray(), left.getFamilyOffset(), left.getFamilyLength(), buf, offset, length);
 }