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>
This commit is contained in:
Peter Somogyi 2019-11-22 20:42:27 +01:00 committed by Sean Busbey
parent 8e52339cb8
commit ee730c8c79
1 changed files with 8 additions and 4 deletions

View File

@ -21,6 +21,7 @@ import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.codec.binary.Hex;
@ -194,11 +195,14 @@ public class TestFiltersWithBinaryComponentComparator {
Put row = new Put(key);
if (c%2==0) {
row.addColumn(family, qf, Bytes.toBytes("abc"));
LOG.info("added row:" + Hex.encodeHex(key) + "with value 'abc'");
}
else {
if (LOG.isInfoEnabled()) {
LOG.info("added row: {} with value 'abc'", Arrays.toString(Hex.encodeHex(key)));
}
} else {
row.addColumn(family, qf, Bytes.toBytes("xyz"));
LOG.info("added row:" + Hex.encodeHex(key) + "with value 'xyz'");
if (LOG.isInfoEnabled()) {
LOG.info("added row: {} with value 'xyz'", Arrays.toString(Hex.encodeHex(key)));
}
}
}
}