SubBinaryPrefixComparator expectedComp = new SubBinaryPrefixComparator(
Bytes.toBytes("abc"), 0, -1);
RowFilter expectedFilter = new RowFilter(CompareOp.EQUAL, expectedComp);
Mapping mapping = new Mapping();
Map<String, RowAlias> rowAliases = new TreeMap<String, RowAlias>();
rowAliases.put(alias.getAlias(), alias);
mapping.setRowAlias(rowAliases);
RowFilter filterReturned = HBaseFilterFactory.getRowFilter(rowFilter,
mapping);
SubBinaryPrefixComparator returnedComparator = (SubBinaryPrefixComparator) filterReturned
.getComparator();