org.apache.hadoop.hive.ql.exec.vector.expressions.aggregates
Class VectorUDAFCountStar

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.vector.expressions.aggregates.VectorAggregateExpression
      extended by org.apache.hadoop.hive.ql.exec.vector.expressions.aggregates.VectorUDAFCountStar
All Implemented Interfaces:
Serializable

public class VectorUDAFCountStar
extends VectorAggregateExpression

VectorUDAFCountStar. Vectorized implementation for COUNT(*) aggregates.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.aggregates.VectorAggregateExpression
VectorAggregateExpression.AggregationBuffer
 
Constructor Summary
VectorUDAFCountStar()
           
VectorUDAFCountStar(VectorExpression inputExpression)
           
 
Method Summary
 void aggregateInput(VectorAggregateExpression.AggregationBuffer agg, VectorizedRowBatch batch)
           
 void aggregateInputSelection(VectorAggregationBufferRow[] aggregationBufferSets, int aggregateIndex, VectorizedRowBatch batch)
           
 Object evaluateOutput(VectorAggregateExpression.AggregationBuffer agg)
           
 int getAggregationBufferFixedSize()
           
 VectorAggregateExpression.AggregationBuffer getNewAggregationBuffer()
           
 ObjectInspector getOutputObjectInspector()
           
 void init(AggregationDesc desc)
           
 void reset(VectorAggregateExpression.AggregationBuffer agg)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.aggregates.VectorAggregateExpression
hasVariableSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorUDAFCountStar

public VectorUDAFCountStar(VectorExpression inputExpression)

VectorUDAFCountStar

public VectorUDAFCountStar()
Method Detail

aggregateInputSelection

public void aggregateInputSelection(VectorAggregationBufferRow[] aggregationBufferSets,
                                    int aggregateIndex,
                                    VectorizedRowBatch batch)
                             throws HiveException
Specified by:
aggregateInputSelection in class VectorAggregateExpression
Throws:
HiveException

aggregateInput

public void aggregateInput(VectorAggregateExpression.AggregationBuffer agg,
                           VectorizedRowBatch batch)
                    throws HiveException
Specified by:
aggregateInput in class VectorAggregateExpression
Throws:
HiveException

getNewAggregationBuffer

public VectorAggregateExpression.AggregationBuffer getNewAggregationBuffer()
                                                                    throws HiveException
Specified by:
getNewAggregationBuffer in class VectorAggregateExpression
Throws:
HiveException

reset

public void reset(VectorAggregateExpression.AggregationBuffer agg)
           throws HiveException
Specified by:
reset in class VectorAggregateExpression
Throws:
HiveException

evaluateOutput

public Object evaluateOutput(VectorAggregateExpression.AggregationBuffer agg)
                      throws HiveException
Specified by:
evaluateOutput in class VectorAggregateExpression
Throws:
HiveException

getOutputObjectInspector

public ObjectInspector getOutputObjectInspector()
Specified by:
getOutputObjectInspector in class VectorAggregateExpression

getAggregationBufferFixedSize

public int getAggregationBufferFixedSize()
Specified by:
getAggregationBufferFixedSize in class VectorAggregateExpression

init

public void init(AggregationDesc desc)
          throws HiveException
Specified by:
init in class VectorAggregateExpression
Throws:
HiveException


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