Search in sources :

Example 1 with FilterAndProjectOperator

use of com.facebook.presto.operator.FilterAndProjectOperator in project presto by prestodb.

the class PredicateFilterBenchmark method createOperatorFactories.

@Override
protected List<? extends OperatorFactory> createOperatorFactories() {
    OperatorFactory tableScanOperator = createTableScanOperator(0, new PlanNodeId("test"), "orders", "totalprice");
    FilterAndProjectOperator.FilterAndProjectOperatorFactory filterAndProjectOperator = new FilterAndProjectOperator.FilterAndProjectOperatorFactory(1, new PlanNodeId("test"), () -> new GenericPageProcessor(new DoubleFilter(50000.00), ImmutableList.of(singleColumn(DOUBLE, 0))), ImmutableList.of(DOUBLE));
    return ImmutableList.of(tableScanOperator, filterAndProjectOperator);
}
Also used : PlanNodeId(com.facebook.presto.sql.planner.plan.PlanNodeId) OperatorFactory(com.facebook.presto.operator.OperatorFactory) GenericPageProcessor(com.facebook.presto.operator.GenericPageProcessor) FilterAndProjectOperator(com.facebook.presto.operator.FilterAndProjectOperator)

Aggregations

FilterAndProjectOperator (com.facebook.presto.operator.FilterAndProjectOperator)1 GenericPageProcessor (com.facebook.presto.operator.GenericPageProcessor)1 OperatorFactory (com.facebook.presto.operator.OperatorFactory)1 PlanNodeId (com.facebook.presto.sql.planner.plan.PlanNodeId)1