code: private static boolean rowContains(final byte[] row,
                                       short offset, final byte[] bytes) {
      for (int pos = bytes.length - 1; pos >= 0; pos--) {
        if (row[offset + pos] != bytes[pos]) {
          return false;
        }
      }
      return true;
    }
docs: Checks whether or not the row key contains the given byte array at the
  given offset.
  @param row The row key in which to search.
  @param offset The offset in {@code row} at which to start searching.
  @param bytes The bytes to search that the given offset.
  @return true if {@code bytes} are present in {@code row} at
  {@code offset}, false otherwise.