org.apache.hadoop.hive.ql.exec.vector
Class VectorGroupByOperator
java.lang.Object
org.apache.hadoop.hive.ql.exec.Operator<GroupByDesc>
org.apache.hadoop.hive.ql.exec.GroupByOperator
org.apache.hadoop.hive.ql.exec.vector.VectorGroupByOperator
- All Implemented Interfaces:
- Serializable, Cloneable, Node
public class VectorGroupByOperator
- extends GroupByOperator
Vectorized GROUP BY operator implementation. Consumes the vectorized input and
stores the aggregate operators' intermediate states. Emits row mode output.
- See Also:
- Serialized Form
Methods inherited from class org.apache.hadoop.hive.ql.exec.Operator |
augmentPlan, cleanUpInputFileChanged, cleanUpInputFileChangedOp, clone, cloneOp, cloneRecursiveChildren, close, columnNamesRowResolvedCanBeObtained, dump, dump, getChildOperators, getChildren, getColumnExprMap, getConf, getConfiguration, getDone, getExecContext, getGroupKeyObject, getGroupKeyObjectInspector, getIdentifier, getInputObjInspectors, getNumChild, getNumParent, getOperatorId, getOpTraits, getOutputObjInspector, getParentOperators, getSchema, getStatistics, getStats, initialize, initializeLocalWork, initOperatorId, isUseBucketizedHiveInputFormat, jobClose, jobCloseOp, logStats, opAllowedAfterMapJoin, opAllowedBeforeMapJoin, opAllowedBeforeSortMergeJoin, opAllowedConvertMapJoin, passExecContext, preorderMap, processGroup, removeChild, removeChildAndAdoptItsChildren, removeChildren, removeParent, replaceChild, replaceParent, reset, resetId, resetStats, setAlias, setChildOperators, setColumnExprMap, setConf, setExecContext, setGroupKeyObject, setGroupKeyObjectInspector, setId, setInputObjInspectors, setOperatorId, setOpTraits, setOutputCollector, setParentOperators, setReporter, setSchema, setStatistics, setUseBucketizedHiveInputFormat, supportAutomaticSortMergeJoin, supportSkewJoinOptimization, supportUnionRemoveOptimization, toString, toString |
VectorGroupByOperator
public VectorGroupByOperator(VectorizationContext vContext,
OperatorDesc conf)
throws HiveException
- Throws:
HiveException
VectorGroupByOperator
public VectorGroupByOperator()
processOp
public void processOp(Object row,
int tag)
throws HiveException
- Description copied from class:
Operator
- Process the row.
- Overrides:
processOp
in class GroupByOperator
- Parameters:
row
- The object representing the row.tag
- The tag of the row usually means which parent this row comes from.
Rows with the same tag should have exactly the same rowInspector
all the time.
- Throws:
HiveException
closeOp
public void closeOp(boolean aborted)
throws HiveException
- Description copied from class:
GroupByOperator
- We need to forward all the aggregations to children.
- Overrides:
closeOp
in class GroupByOperator
- Throws:
HiveException
getOperatorName
public static String getOperatorName()
getKeyExpressions
public VectorExpression[] getKeyExpressions()
setKeyExpressions
public void setKeyExpressions(VectorExpression[] keyExpressions)
getAggregators
public VectorAggregateExpression[] getAggregators()
setAggregators
public void setAggregators(VectorAggregateExpression[] aggregators)
Copyright © 2014 The Apache Software Foundation. All rights reserved.