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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.Operator<GroupByDesc>
      extended by org.apache.hadoop.hive.ql.exec.GroupByOperator
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.Operator
Operator.OperatorFunc, Operator.State
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.GroupByOperator
memoryMXBean
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.Operator
HIVECOUNTERCREATEDFILES, HIVECOUNTERFATAL
 
Constructor Summary
VectorGroupByOperator()
           
VectorGroupByOperator(VectorizationContext vContext, OperatorDesc conf)
           
 
Method Summary
 void closeOp(boolean aborted)
          We need to forward all the aggregations to children.
 VectorAggregateExpression[] getAggregators()
           
 VectorExpression[] getKeyExpressions()
           
static String getOperatorName()
           
 void processOp(Object row, int tag)
          Process the row.
 void setAggregators(VectorAggregateExpression[] aggregators)
           
 void setKeyExpressions(VectorExpression[] keyExpressions)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.GroupByOperator
acceptLimitPushdown, endGroup, flush, genColLists, getName, getType, groupingSet2BitSet, startGroup
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VectorGroupByOperator

public VectorGroupByOperator(VectorizationContext vContext,
                             OperatorDesc conf)
                      throws HiveException
Throws:
HiveException

VectorGroupByOperator

public VectorGroupByOperator()
Method Detail

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.