Package io.trino.operator.function
Class TableFunctionOperator
java.lang.Object
io.trino.operator.function.TableFunctionOperator
- All Implemented Interfaces:
Operator,AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface io.trino.operator.Operator
NOT_BLOCKED -
Constructor Summary
ConstructorsConstructorDescriptionTableFunctionOperator(OperatorContext operatorContext, TableFunctionProcessorProvider tableFunctionProvider, CatalogHandle catalogHandle, ConnectorTableFunctionHandle functionHandle, int properChannelsCount, int passThroughSourcesCount, List<List<Integer>> requiredChannels, Optional<Map<Integer, Integer>> markerChannels, List<RegularTableFunctionPartition.PassThroughColumnSpecification> passThroughSpecifications, boolean pruneWhenEmpty, List<Integer> partitionChannels, List<Integer> prePartitionedChannels, List<Integer> sortChannels, List<SortOrder> sortOrders, int preSortedPrefix, List<Type> sourceTypes, int expectedPositions, PagesIndex.Factory pagesIndexFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an input page to the operator.voidfinish()Notifies the operator that no more pages will be added and the operator should finish processing and flush results.Gets an output page from the operator.com.google.common.util.concurrent.ListenableFuture<Void> Returns a future that will be completed when the operator becomes unblocked.booleanIs this operator completely finished processing and no more output pages will be produced.booleanReturns true if and only if this operator can accept an input page.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.operator.Operator
close, finishMemoryRevoke, startMemoryRevoke
-
Constructor Details
-
TableFunctionOperator
public TableFunctionOperator(OperatorContext operatorContext, TableFunctionProcessorProvider tableFunctionProvider, CatalogHandle catalogHandle, ConnectorTableFunctionHandle functionHandle, int properChannelsCount, int passThroughSourcesCount, List<List<Integer>> requiredChannels, Optional<Map<Integer, Integer>> markerChannels, List<RegularTableFunctionPartition.PassThroughColumnSpecification> passThroughSpecifications, boolean pruneWhenEmpty, List<Integer> partitionChannels, List<Integer> prePartitionedChannels, List<Integer> sortChannels, List<SortOrder> sortOrders, int preSortedPrefix, List<Type> sourceTypes, int expectedPositions, PagesIndex.Factory pagesIndexFactory)
-
-
Method Details
-
getOperatorContext
- Specified by:
getOperatorContextin interfaceOperator
-
finish
-
isFinished
public boolean isFinished()Description copied from interface:OperatorIs this operator completely finished processing and no more output pages will be produced.- Specified by:
isFinishedin interfaceOperator
-
isBlocked
Description copied from interface:OperatorReturns a future that will be completed when the operator becomes unblocked. If the operator is not blocked, this method should returnNOT_BLOCKED. -
needsInput
public boolean needsInput()Description copied from interface:OperatorReturns true if and only if this operator can accept an input page.- Specified by:
needsInputin interfaceOperator
-
addInput
-
getOutput
-