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