@Override
    public ByteBuffer getValueByteBuffer() {
      if (lenAsVal) {
        return ByteBuffer.wrap(Bytes.toBytes(cell.getValueLength()));
      } else {
        return HConstants.EMPTY_BYTE_BUFFER;
      }
    }
Returns true if and only if the fields of the filter that are serialized are equal to the
corresponding fields in other. Used for testing.
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/KeyOnlyFilter.java