Package io.trino.operator
Class MarkDistinctOperator
java.lang.Object
io.trino.operator.MarkDistinctOperator
- All Implemented Interfaces:
Operator,AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface io.trino.operator.Operator
NOT_BLOCKED -
Constructor Summary
ConstructorsConstructorDescriptionMarkDistinctOperator(OperatorContext operatorContext, List<Type> types, List<Integer> markDistinctChannels, Optional<Integer> hashChannel, JoinCompiler joinCompiler) -
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.intGets an output page from the operator.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, isBlocked, startMemoryRevoke
-
Constructor Details
-
MarkDistinctOperator
public MarkDistinctOperator(OperatorContext operatorContext, List<Type> types, List<Integer> markDistinctChannels, Optional<Integer> hashChannel, JoinCompiler joinCompiler)
-
-
Method Details
-
getOperatorContext
- Specified by:
getOperatorContextin interfaceOperator
-
finish
public void finish()Description copied from interface:OperatorNotifies the operator that no more pages will be added and the operator should finish processing and flush results. This method will not be called if the Task is already failed or canceled. -
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
-
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
Description copied from interface:OperatorAdds an input page to the operator. This method will only be called ifneedsInput()returns true. -
getOutput
Description copied from interface:OperatorGets an output page from the operator. If no output data is currently available, return null. -
getCapacity
public int getCapacity()
-