CompareOp op = rangeCondSet && !upperBoundInclusive ? CompareOp.LESS : CompareOp.LESS_OR_EQUAL;
Filter toFilter = new RowFilter(op, new BinaryPrefixComparator(toKey));
FilterList filters = new FilterList(FilterList.Operator.MUST_PASS_ALL);
if (query.getIndexFilter() != null) {
filters.addFilter(new IndexFilterHbaseImpl(query.getIndexFilter(), definition));
}
if (rangeCondSet && !rangeCond.isLowerBoundInclusive()) {
// TODO: optimize the performance hit caused by the extra filter
// Once the greater filter on the fromKey returns true, it will remain true because