Package org.apache.drill.exec.record
Class JoinBatchMemoryManager
java.lang.Object
org.apache.drill.exec.record.RecordBatchMemoryManager
org.apache.drill.exec.record.JoinBatchMemoryManager
-
Field Summary
Fields inherited from class org.apache.drill.exec.record.RecordBatchMemoryManager
DEFAULT_INPUT_INDEX, MAX_NUM_ROWS, MIN_NUM_ROWS
-
Constructor Summary
ConstructorDescriptionJoinBatchMemoryManager
(int outputBatchSize, RecordBatch leftBatch, RecordBatch rightBatch, Set<String> excludedColumns) -
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(int inputIndex, int outputPosition) Update the memory manager parameters based on the new incoming batch (based on allocated sizes, not average row size)void
update
(int inputIndex, int outputPosition, boolean useAggregate) Update the memory manager parameters based on the new incoming batchvoid
update
(RecordBatch batch, int inputIndex, int outputPosition) Update the memory manager parameters based on the given (incoming) batch (based on allocated sizes, not average row size)void
update
(RecordBatch batch, int inputIndex, int outputPosition, boolean useAggregate) Update the memory manager parameters based on the given (incoming) batchMethods inherited from class org.apache.drill.exec.record.RecordBatchMemoryManager
adjustOutputRowCount, allocateVectors, allocateVectors, allocateVectors, allocateVectors, computeOutputRowCount, getAvgInputBatchSize, getAvgInputBatchSize, getAvgInputRowWidth, getAvgInputRowWidth, getAvgOutputBatchSize, getAvgOutputRowWidth, getColumnSize, getColumnSize, getCurrentOutgoingMaxRowCount, getNumIncomingBatches, getNumIncomingBatches, getNumOutgoingBatches, getOffsetVectorWidth, getOutgoingRowWidth, getOutputBatchSize, getOutputRowCount, getRecordBatchSizer, getRecordBatchSizer, getTotalInputRecords, getTotalInputRecords, getTotalOutputRecords, setCurrentOutgoingMaxRowCount, setOutgoingRowWidth, setOutputRowCount, setOutputRowCount, setRecordBatchSizer, setRecordBatchSizer, update, update, update, update, updateIfNeeded, updateIncomingStats, updateIncomingStats, updateOutgoingStats
-
Field Details
-
LEFT_INDEX
public static final int LEFT_INDEX- See Also:
-
RIGHT_INDEX
public static final int RIGHT_INDEX- See Also:
-
-
Constructor Details
-
JoinBatchMemoryManager
public JoinBatchMemoryManager(int outputBatchSize, RecordBatch leftBatch, RecordBatch rightBatch, Set<String> excludedColumns)
-
-
Method Details
-
update
public void update(int inputIndex, int outputPosition, boolean useAggregate) Update the memory manager parameters based on the new incoming batch- Overrides:
update
in classRecordBatchMemoryManager
- Parameters:
inputIndex
- Left (0) or Right (1)outputPosition
- Position (i.e. number of inserted rows) in the output batchuseAggregate
- Compute using average row width (else based on allocated sizes)
-
update
public void update(int inputIndex, int outputPosition) Update the memory manager parameters based on the new incoming batch (based on allocated sizes, not average row size)- Overrides:
update
in classRecordBatchMemoryManager
- Parameters:
inputIndex
- Left (0) or Right (1)outputPosition
- Position (i.e. number of inserted rows) in the output batch
-
update
Update the memory manager parameters based on the given (incoming) batch- Overrides:
update
in classRecordBatchMemoryManager
- Parameters:
batch
- Update based on the data in this batchinputIndex
- Left (0) or Right (1)outputPosition
- Position (i.e. number of inserted rows) in the output batchuseAggregate
- Compute using average row width (else based on allocated sizes)
-
update
Update the memory manager parameters based on the given (incoming) batch (based on allocated sizes, not average row size)- Overrides:
update
in classRecordBatchMemoryManager
- Parameters:
batch
- Update based on the data in this batchinputIndex
- Left (0) or Right (1)outputPosition
- Position (i.e. number of inserted rows) in the output batch
-