org.apache.hadoop.hive.ql.exec.vector
Class VectorAggregationBufferRow

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.vector.VectorAggregationBufferRow

public class VectorAggregationBufferRow
extends Object

Represents a set of aggregation buffers to be used for a specific key for UDAF GROUP BY.


Constructor Summary
VectorAggregationBufferRow(VectorAggregateExpression.AggregationBuffer[] aggregationBuffers)
           
 
Method Summary
 VectorAggregateExpression.AggregationBuffer getAggregationBuffer(int bufferIndex)
          returns the aggregation buffer for an aggregation expression, by index.
 VectorAggregateExpression.AggregationBuffer[] getAggregationBuffers()
          returns the array of aggregation buffers (the entire set).
 int getIndex()
          cached index used by VectorAggregationBufferBatch.
 int getVersion()
          Versioning used to detect staleness of the index cached for benefit of VectorAggregationBufferBatch.
 void reset()
          Resets the aggregation buffers for reuse
 void setVersionAndIndex(int version, int index)
          accessor for VectorAggregationBufferBatch to set its caching info on this set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorAggregationBufferRow

public VectorAggregationBufferRow(VectorAggregateExpression.AggregationBuffer[] aggregationBuffers)
Method Detail

getAggregationBuffer

public VectorAggregateExpression.AggregationBuffer getAggregationBuffer(int bufferIndex)
returns the aggregation buffer for an aggregation expression, by index.


getAggregationBuffers

public VectorAggregateExpression.AggregationBuffer[] getAggregationBuffers()
returns the array of aggregation buffers (the entire set).


getVersion

public int getVersion()
Versioning used to detect staleness of the index cached for benefit of VectorAggregationBufferBatch.


getIndex

public int getIndex()
cached index used by VectorAggregationBufferBatch.

Returns:

setVersionAndIndex

public void setVersionAndIndex(int version,
                               int index)
accessor for VectorAggregationBufferBatch to set its caching info on this set.


reset

public void reset()
Resets the aggregation buffers for reuse



Copyright © 2014 The Apache Software Foundation. All rights reserved.