Skip to content

Commit ee730c8

Browse files
petersomogyibusbey
authored andcommitted
HBASE-22969 A new binary component comparator(BinaryComponentComparator) to perform comparison of arbitrary length and position; ADDENDUM (#869)
Signed-off-by: Sean Busbey <busbey@apache.org>
1 parent 8e52339 commit ee730c8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/filter/TestFiltersWithBinaryComponentComparator.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import java.io.IOException;
2323
import java.util.ArrayList;
24+
import java.util.Arrays;
2425
import java.util.List;
2526

2627
import org.apache.commons.codec.binary.Hex;
@@ -194,11 +195,14 @@ private void generateRows(Table ht, byte[] family, byte[] qf)
194195
Put row = new Put(key);
195196
if (c%2==0) {
196197
row.addColumn(family, qf, Bytes.toBytes("abc"));
197-
LOG.info("added row:" + Hex.encodeHex(key) + "with value 'abc'");
198-
}
199-
else {
198+
if (LOG.isInfoEnabled()) {
199+
LOG.info("added row: {} with value 'abc'", Arrays.toString(Hex.encodeHex(key)));
200+
}
201+
} else {
200202
row.addColumn(family, qf, Bytes.toBytes("xyz"));
201-
LOG.info("added row:" + Hex.encodeHex(key) + "with value 'xyz'");
203+
if (LOG.isInfoEnabled()) {
204+
LOG.info("added row: {} with value 'xyz'", Arrays.toString(Hex.encodeHex(key)));
205+
}
202206
}
203207
}
204208
}

0 commit comments

Comments
 (0)