Package io.prestosql.operator
Class SpatialJoinOperator
- java.lang.Object
-
- io.prestosql.operator.SpatialJoinOperator
-
- All Implemented Interfaces:
Operator
,AutoCloseable
public class SpatialJoinOperator extends Object implements Operator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpatialJoinOperator.SpatialJoinOperatorFactory
-
Field Summary
-
Fields inherited from interface io.prestosql.operator.Operator
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description SpatialJoinOperator(OperatorContext operatorContext, SpatialJoinNode.Type joinType, List<Type> probeTypes, List<Integer> probeOutputChannels, int probeGeometryChannel, Optional<Integer> partitionChannel, PagesSpatialIndexFactory pagesSpatialIndexFactory, Runnable onClose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInput(Page page)
Adds an input page to the operator.void
close()
This method will always be called before releasing the Operator reference.void
finish()
Notifies the operator that no more pages will be added and the operator should finish processing and flush results.OperatorContext
getOperatorContext()
Page
getOutput()
Gets an output page from the operator.boolean
isFinished()
Is this operator completely finished processing and no more output pages will be produced.boolean
needsInput()
Returns 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, wait
-
Methods inherited from interface io.prestosql.operator.Operator
finishMemoryRevoke, isBlocked, startMemoryRevoke
-
-
-
-
Constructor Detail
-
SpatialJoinOperator
public SpatialJoinOperator(OperatorContext operatorContext, SpatialJoinNode.Type joinType, List<Type> probeTypes, List<Integer> probeOutputChannels, int probeGeometryChannel, Optional<Integer> partitionChannel, PagesSpatialIndexFactory pagesSpatialIndexFactory, Runnable onClose)
-
-
Method Detail
-
getOperatorContext
public OperatorContext getOperatorContext()
- Specified by:
getOperatorContext
in interfaceOperator
-
needsInput
public boolean needsInput()
Description copied from interface:Operator
Returns true if and only if this operator can accept an input page.- Specified by:
needsInput
in interfaceOperator
-
addInput
public void addInput(Page page)
Description copied from interface:Operator
Adds an input page to the operator. This method will only be called ifneedsInput()
returns true.
-
getOutput
public Page getOutput()
Description copied from interface:Operator
Gets an output page from the operator. If no output data is currently available, return null.
-
finish
public void finish()
Description copied from interface:Operator
Notifies 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:Operator
Is this operator completely finished processing and no more output pages will be produced.- Specified by:
isFinished
in interfaceOperator
-
close
public void close()
Description copied from interface:Operator
This method will always be called before releasing the Operator reference.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceOperator
-
-