use of com.linkedin.pinot.core.operator.filter.predicate.PredicateEvaluator in project pinot by linkedin.
the class StarTreeIndexOperator method processFilterTree.
private void processFilterTree(FilterQueryTree childFilter) {
String column = childFilter.getColumn();
// Only equality predicates are supported
Predicate predicate = Predicate.newPredicate(childFilter);
Dictionary dictionary = segment.getDataSource(column).getDictionary();
PredicateEntry predicateEntry = null;
PredicateEvaluator predicateEvaluator = PredicateEvaluatorProvider.getPredicateFunctionFor(predicate, dictionary);
// true.
if (predicateEvaluator.alwaysFalse()) {
emptyResult = true;
}
// Store this predicate, we will have to apply it later
predicateEntry = new PredicateEntry(predicate, predicateEvaluator);
predicateColumns.add(column);
predicatesMap.put(column, predicateEntry);
}
Aggregations