Class PartitionSenderRootExec
java.lang.Object
org.apache.drill.exec.physical.impl.BaseRootExec
org.apache.drill.exec.physical.impl.partitionsender.PartitionSenderRootExec
- All Implemented Interfaces:
AutoCloseable
,RootExec
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final int
Fields inherited from class org.apache.drill.exec.physical.impl.BaseRootExec
ENABLE_BATCH_DUMP_CONFIG, fragmentContext, oContext, stats
-
Constructor Summary
ConstructorDescriptionPartitionSenderRootExec
(RootFragmentContext context, RecordBatch incoming, HashPartitionSender operator) PartitionSenderRootExec
(RootFragmentContext context, RecordBatch incoming, HashPartitionSender operator, boolean closeIncoming) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
protected PartitionerDecorator
boolean
void
Inform sender that receiving fragment is finished and doesn't need any more data.Methods inherited from class org.apache.drill.exec.physical.impl.BaseRootExec
dumpBatches, findLeaf, next, next
-
Field Details
-
numberPartitions
protected final int numberPartitions -
actualPartitions
protected final int actualPartitions
-
-
Constructor Details
-
PartitionSenderRootExec
public PartitionSenderRootExec(RootFragmentContext context, RecordBatch incoming, HashPartitionSender operator) throws OutOfMemoryException - Throws:
OutOfMemoryException
-
PartitionSenderRootExec
public PartitionSenderRootExec(RootFragmentContext context, RecordBatch incoming, HashPartitionSender operator, boolean closeIncoming) throws OutOfMemoryException - Throws:
OutOfMemoryException
-
-
Method Details
-
innerNext
public boolean innerNext()- Specified by:
innerNext
in classBaseRootExec
-
createPartitioner
protected void createPartitioner() -
receivingFragmentFinished
Description copied from interface:RootExec
Inform sender that receiving fragment is finished and doesn't need any more data. This can be called multiple times (once for each downstream receiver). If all receivers are finished then a subsequent call toRootExec.next()
will return false.- Specified by:
receivingFragmentFinished
in interfaceRootExec
- Overrides:
receivingFragmentFinished
in classBaseRootExec
- Parameters:
handle
- The handle pointing to the downstream receiver that does not need anymore data.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classBaseRootExec
- Throws:
Exception
-
getPartitioner
-