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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intFields inherited from class org.apache.drill.exec.physical.impl.BaseRootExec
ENABLE_BATCH_DUMP_CONFIG, fragmentContext, oContext, stats -
Constructor Summary
ConstructorsConstructorDescriptionPartitionSenderRootExec(RootFragmentContext context, RecordBatch incoming, HashPartitionSender operator) PartitionSenderRootExec(RootFragmentContext context, RecordBatch incoming, HashPartitionSender operator, boolean closeIncoming) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidprotected PartitionerDecoratorbooleanvoidInform 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:
innerNextin classBaseRootExec
-
createPartitioner
protected void createPartitioner() -
receivingFragmentFinished
Description copied from interface:RootExecInform 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:
receivingFragmentFinishedin interfaceRootExec- Overrides:
receivingFragmentFinishedin classBaseRootExec- Parameters:
handle- The handle pointing to the downstream receiver that does not need anymore data.
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classBaseRootExec- Throws:
Exception
-
getPartitioner
-