public class JoinBatchMemoryManager extends RecordBatchMemoryManager
Modifier and Type | Field and Description |
---|---|
static int |
LEFT_INDEX |
static int |
RIGHT_INDEX |
DEFAULT_INPUT_INDEX, MAX_NUM_ROWS, MIN_NUM_ROWS
Constructor and Description |
---|
JoinBatchMemoryManager(int outputBatchSize,
RecordBatch leftBatch,
RecordBatch rightBatch,
Set<String> excludedColumns) |
Modifier and Type | Method and Description |
---|---|
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)
|
void |
update(int inputIndex,
int outputPosition,
boolean useAggregate)
Update the memory manager parameters based on the new incoming batch
|
void |
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) batch
|
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
public static final int LEFT_INDEX
public static final int RIGHT_INDEX
public JoinBatchMemoryManager(int outputBatchSize, RecordBatch leftBatch, RecordBatch rightBatch, Set<String> excludedColumns)
public void update(int inputIndex, int outputPosition, boolean useAggregate)
update
in class RecordBatchMemoryManager
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)public void update(int inputIndex, int outputPosition)
update
in class RecordBatchMemoryManager
inputIndex
- Left (0) or Right (1)outputPosition
- Position (i.e. number of inserted rows) in the output batchpublic void update(RecordBatch batch, int inputIndex, int outputPosition, boolean useAggregate)
update
in class RecordBatchMemoryManager
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)public void update(RecordBatch batch, int inputIndex, int outputPosition)
update
in class RecordBatchMemoryManager
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 batchCopyright © 1970 The Apache Software Foundation. All rights reserved.