use of org.apache.phoenix.hbase.index.covered.filter.ApplyAndFilterDeletesFilter in project phoenix by apache.
the class ScannerBuilder method buildIndexedColumnScanner.
public Scanner buildIndexedColumnScanner(Collection<? extends ColumnReference> indexedColumns, ColumnTracker tracker, long ts, boolean returnNullIfRowNotFound) {
Filter columnFilters = getColumnFilters(indexedColumns);
FilterList filters = new FilterList(Lists.newArrayList(columnFilters));
// skip to the right TS. This needs to come before the deletes since the deletes will hide any
// state that comes before the actual kvs, so we need to capture those TS as they change the row
// state.
filters.addFilter(new ColumnTrackingNextLargestTimestampFilter(ts, tracker));
// filter out kvs based on deletes
filters.addFilter(new ApplyAndFilterDeletesFilter(getAllFamilies(indexedColumns)));
// combine the family filters and the rest of the filters as a
return getFilteredScanner(filters, returnNullIfRowNotFound);
}
Aggregations