rowFilter.setRowAlias(alias);
LongComparator expectedComp = new LongComparator(123l, 0, 8);
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);
LongComparator returnedComparator = (LongComparator) filterReturned
.getComparator();