public class VectorPTFGroupBatches extends PTFPartition
PTFPartition.PTFPartitionIterator<T>boundaryCache, valueCache| Constructor and Description |
|---|
VectorPTFGroupBatches(org.apache.hadoop.conf.Configuration hconf,
int vectorizedPTFMaxMemoryBufferingBatchCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferGroupBatch(VectorizedRowBatch batch,
boolean isLastGroupBatch)
Buffers a batch at the end of bufferedBatches, and if it's full, spills a block of batches to
the disk.
|
void |
cleanupPartition()
This should be called, when all of the batches were processed for a group (all of the
evaluators have been evaluated for this group).
|
void |
evaluateStreamingGroupBatch(VectorizedRowBatch batch,
boolean isLastGroupBatch) |
void |
fillGroupResultsAndForward(VectorPTFOperator vecPTFOperator,
Object[] partitionKey) |
void |
finishPartition() |
Object[] |
getAt(int i)
Finds and element by a partition-level row index.
|
org.apache.hadoop.hive.ql.exec.vector.ptf.VectorPTFGroupBatches.RowPositionInBatch |
getPosition(int i) |
Object |
getValue(int row,
int col)
Returns the value at row/col.
|
Object |
getValueAndEvaluateInputExpression(VectorPTFEvaluatorBase evaluator,
int row,
int col) |
void |
init(VectorPTFEvaluatorBase[] evaluators,
int[] outputProjectionColumnMap,
int[] bufferedColumnMap,
TypeInfo[] bufferedTypeInfos,
int[] orderColumnMap,
int[] keyWithoutOrderColumnMap,
VectorizedRowBatch overflowBatch) |
void |
jumpToLastBlock() |
void |
resetEvaluators() |
Object |
runEvaluatorOnRange(VectorPTFEvaluatorBase evaluator,
Range range) |
Object |
runEvaluatorOnRange(VectorPTFEvaluatorBase evaluator,
Range range,
boolean resetAfterCalculation) |
int |
size()
Overrides PTFPartition.size(), this is supposed to return the amount of records in the partition.
|
append, close, create, createRolling, getBoundaryCache, getInputOI, getOutputOI, getSerDe, initBoundaryCache, initValueCache, iterator, range, range, reset, setupPartitionOutputOIpublic VectorPTFGroupBatches(org.apache.hadoop.conf.Configuration hconf,
int vectorizedPTFMaxMemoryBufferingBatchCount)
public void init(VectorPTFEvaluatorBase[] evaluators, int[] outputProjectionColumnMap, int[] bufferedColumnMap, TypeInfo[] bufferedTypeInfos, int[] orderColumnMap, int[] keyWithoutOrderColumnMap, VectorizedRowBatch overflowBatch)
public Object[] getAt(int i) throws HiveException
getAt in class PTFPartitionHiveExceptionpublic Object getValue(int row, int col) throws HiveException
row - col - HiveExceptionpublic Object getValueAndEvaluateInputExpression(VectorPTFEvaluatorBase evaluator, int row, int col) throws HiveException
HiveExceptionpublic org.apache.hadoop.hive.ql.exec.vector.ptf.VectorPTFGroupBatches.RowPositionInBatch getPosition(int i) throws HiveException
HiveExceptionpublic int size()
size in class PTFPartitionpublic void finishPartition()
throws HiveException
HiveExceptionpublic void cleanupPartition()
public void bufferGroupBatch(VectorizedRowBatch batch, boolean isLastGroupBatch) throws HiveException
batch - HiveExceptionpublic void resetEvaluators()
public void fillGroupResultsAndForward(VectorPTFOperator vecPTFOperator, Object[] partitionKey) throws HiveException
HiveExceptionpublic void evaluateStreamingGroupBatch(VectorizedRowBatch batch, boolean isLastGroupBatch) throws HiveException
HiveExceptionpublic Object runEvaluatorOnRange(VectorPTFEvaluatorBase evaluator, Range range) throws HiveException
HiveExceptionpublic Object runEvaluatorOnRange(VectorPTFEvaluatorBase evaluator, Range range, boolean resetAfterCalculation) throws HiveException
HiveExceptionpublic void jumpToLastBlock()
throws HiveException
HiveExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.