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
FieldsFields inherited from class org.apache.drill.exec.record.RecordBatchMemoryManager
DEFAULT_INPUT_INDEX, MAX_NUM_ROWS, MIN_NUM_ROWS -
Constructor Summary
ConstructorsConstructorDescriptionJoinBatchMemoryManager(int outputBatchSize, RecordBatch leftBatch, RecordBatch rightBatch, Set<String> excludedColumns) -
Method Summary
Modifier and TypeMethodDescriptionvoidupdate(int inputIndex, int outputPosition) Update the memory manager parameters based on the new incoming batch (based on allocated sizes, not average row size)voidupdate(int inputIndex, int outputPosition, boolean useAggregate) Update the memory manager parameters based on the new incoming batchvoidupdate(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)voidupdate(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:
updatein 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:
updatein 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:
updatein 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:
updatein 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
-