use of org.apache.hadoop.hbase.codec.prefixtree.encode.tokenize.TokenizerRowSearchResult in project hbase by apache.
the class TestTokenizer method testSearching.
@Test
public void testSearching() {
for (byte[] input : inputs) {
TokenizerRowSearchResult resultHolder = new TokenizerRowSearchResult();
builder.getNode(resultHolder, input, 0, input.length);
TokenizerNode n = resultHolder.getMatchingNode();
byte[] output = n.getNewByteArray();
Assert.assertTrue(Bytes.equals(input, output));
}
}
Aggregations