@Test public void testCreateKey() { CompoundBloomFilterBase cbfb = new CompoundBloomFilterBase(); byte[] row = "myRow".getBytes(); byte[] qualifier = "myQualifier".getBytes(); byte[] rowKey = cbfb.createBloomKey(row, 0, row.length, row, 0, 0); byte[] rowColKey = cbfb.createBloomKey(row, 0, row.length, qualifier, 0, qualifier.length); KeyValue rowKV = KeyValue.createKeyValueFromKey(rowKey); KeyValue rowColKV = KeyValue.createKeyValueFromKey(rowColKey); assertEquals(rowKV.getTimestamp(), rowColKV.getTimestamp()); assertEquals(Bytes.toStringBinary(rowKV.getRow()), Bytes.toStringBinary(rowColKV.getRow())); assertEquals(0, rowKV.getQualifier().length); }