|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.exec.vector.VectorAggregationBufferBatch
public class VectorAggregationBufferBatch
This maps a batch to the aggregation buffers sets to use for each row (key)
Constructor Summary | |
---|---|
VectorAggregationBufferBatch()
|
Method Summary | |
---|---|
void |
compileAggregationBatchInfo(VectorAggregateExpression[] aggregators)
|
VectorAggregationBufferRow[] |
getAggregationBuffers()
the array of aggregation buffers for the current batch. |
int |
getAggregatorsFixedSize()
Returns the fixed size consumed by the aggregation buffers |
int |
getDistinctBufferSetCount()
number of distinct aggregation buffer sets (ie. |
boolean |
getHasVariableSize()
returns True if any of the aggregators has a variable size |
int |
getVariableSize(int batchSize)
|
void |
mapAggregationBufferSet(VectorAggregationBufferRow bufferSet,
int row)
assigns the given aggregation buffer set to a given batch row (by row number). |
void |
startBatch()
resets the internal aggregation buffers sets index and increments the versioning used to optimize the selection vector population. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VectorAggregationBufferBatch()
Method Detail |
---|
public boolean getHasVariableSize()
public int getAggregatorsFixedSize()
public VectorAggregationBufferRow[] getAggregationBuffers()
getDistinctBufferSetCount()
index
is stale from previous batches.
public int getDistinctBufferSetCount()
public void startBatch()
public void mapAggregationBufferSet(VectorAggregationBufferRow bufferSet, int row)
public void compileAggregationBatchInfo(VectorAggregateExpression[] aggregators)
public int getVariableSize(int batchSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |