Search in sources :

Example 1 with FilterAndProjectOperatorFactory

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

the class DynamicTupleFilterFactory method filterWithTuple.

public OperatorFactory filterWithTuple(Page tuplePage) {
    Page normalizedTuplePage = normalizeTuplePage(tuplePage);
    Supplier<PageProcessor> processor = () -> new TupleFilterProcessor(normalizedTuplePage, outputTypes, outputFilterChannels);
    return new FilterAndProjectOperatorFactory(filterOperatorId, planNodeId, processor, outputTypes);
}
Also used : FilterAndProjectOperatorFactory(com.facebook.presto.operator.FilterAndProjectOperator.FilterAndProjectOperatorFactory) PageProcessor(com.facebook.presto.operator.PageProcessor) Page(com.facebook.presto.spi.Page)

Aggregations

FilterAndProjectOperatorFactory (com.facebook.presto.operator.FilterAndProjectOperator.FilterAndProjectOperatorFactory)1 PageProcessor (com.facebook.presto.operator.PageProcessor)1 Page (com.facebook.presto.spi.Page)1