org.apache.hadoop.hive.ql.exec.vector.expressions.aggregates
Class VectorAggregateExpression
java.lang.Object
org.apache.hadoop.hive.ql.exec.vector.expressions.aggregates.VectorAggregateExpression
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- VectorUDAFAvgDecimal, VectorUDAFAvgDouble, VectorUDAFAvgLong, VectorUDAFCount, VectorUDAFCountStar, VectorUDAFMaxDecimal, VectorUDAFMaxDouble, VectorUDAFMaxLong, VectorUDAFMaxString, VectorUDAFMinDecimal, VectorUDAFMinDouble, VectorUDAFMinLong, VectorUDAFMinString, VectorUDAFStdPopDecimal, VectorUDAFStdPopDouble, VectorUDAFStdPopLong, VectorUDAFStdSampDecimal, VectorUDAFStdSampDouble, VectorUDAFStdSampLong, VectorUDAFSumDecimal, VectorUDAFSumDouble, VectorUDAFSumLong, VectorUDAFVarPopDecimal, VectorUDAFVarPopDouble, VectorUDAFVarPopLong, VectorUDAFVarSampDecimal, VectorUDAFVarSampDouble, VectorUDAFVarSampLong
public abstract class VectorAggregateExpression
- extends Object
- implements Serializable
Base class for aggregation expressions.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VectorAggregateExpression
public VectorAggregateExpression()
getNewAggregationBuffer
public abstract VectorAggregateExpression.AggregationBuffer getNewAggregationBuffer()
throws HiveException
- Throws:
HiveException
aggregateInput
public abstract void aggregateInput(VectorAggregateExpression.AggregationBuffer agg,
VectorizedRowBatch unit)
throws HiveException
- Throws:
HiveException
aggregateInputSelection
public abstract void aggregateInputSelection(VectorAggregationBufferRow[] aggregationBufferSets,
int aggregateIndex,
VectorizedRowBatch vrg)
throws HiveException
- Throws:
HiveException
reset
public abstract void reset(VectorAggregateExpression.AggregationBuffer agg)
throws HiveException
- Throws:
HiveException
evaluateOutput
public abstract Object evaluateOutput(VectorAggregateExpression.AggregationBuffer agg)
throws HiveException
- Throws:
HiveException
getOutputObjectInspector
public abstract ObjectInspector getOutputObjectInspector()
getAggregationBufferFixedSize
public abstract int getAggregationBufferFixedSize()
hasVariableSize
public boolean hasVariableSize()
init
public abstract void init(AggregationDesc desc)
throws HiveException
- Throws:
HiveException
Copyright © 2014 The Apache Software Foundation. All rights reserved.