use of com.facebook.presto.operator.FilterFunction in project presto by prestodb.
the class FunctionAssertions method interpretedFilterProject.
private Operator interpretedFilterProject(Expression filter, Expression projection, Session session) {
FilterFunction filterFunction = new InterpretedInternalFilterFunction(filter, SYMBOL_TYPES, INPUT_MAPPING, metadata, SQL_PARSER, session);
ProjectionFunction projectionFunction = new InterpretedProjectionFunction(projection, SYMBOL_TYPES, INPUT_MAPPING, metadata, SQL_PARSER, session);
OperatorFactory operatorFactory = new FilterAndProjectOperator.FilterAndProjectOperatorFactory(0, new PlanNodeId("test"), () -> new GenericPageProcessor(filterFunction, ImmutableList.of(projectionFunction)), toTypes(ImmutableList.of(projectionFunction)));
return operatorFactory.createOperator(createDriverContext(session));
}
Aggregations