org.apache.hadoop.hive.ql.exec
Class ReduceSinkOperator
java.lang.Object
org.apache.hadoop.hive.ql.exec.Operator<T>
org.apache.hadoop.hive.ql.exec.TerminalOperator<reduceSinkDesc>
org.apache.hadoop.hive.ql.exec.ReduceSinkOperator
- All Implemented Interfaces:
- Serializable, Node
public class ReduceSinkOperator
- extends TerminalOperator<reduceSinkDesc>
- implements Serializable
Reduce Sink Operator sends output to the reduce stage
- See Also:
- Serialized Form
Fields inherited from class org.apache.hadoop.hive.ql.exec.Operator |
alias, childOperators, conf, done, gWork, id, joinAlias, LOG, out, parentOperators, reporter, statsMap |
Methods inherited from class org.apache.hadoop.hive.ql.exec.Operator |
close, dump, endGroup, forward, getChildOperators, getChildren, getConf, getDone, getParentOperators, getSchema, getStats, jobClose, logStats, preorderMap, resetStats, setAlias, setChildOperators, setConf, setDone, setId, setJoinAlias, setMapredWork, setOutputCollector, setParentOperators, setSchema, startGroup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keyEval
protected transient ExprNodeEvaluator[] keyEval
- The evaluators for the key columns.
Key columns decide the sort order on the reducer side.
Key columns are passed to the reducer in the "key".
valueEval
protected transient ExprNodeEvaluator[] valueEval
- The evaluators for the value columns.
Value columns are passed to reducer in the "value".
partitionEval
protected transient ExprNodeEvaluator[] partitionEval
- The evaluators for the partition columns (CLUSTER BY or DISTRIBUTE BY in Hive language).
Partition columns decide the reducer that the current row goes to.
Partition columns are not passed to reducer.
ReduceSinkOperator
public ReduceSinkOperator()
initialize
public void initialize(org.apache.hadoop.conf.Configuration hconf,
org.apache.hadoop.mapred.Reporter reporter)
throws HiveException
- Overrides:
initialize
in class Operator<reduceSinkDesc>
- Throws:
HiveException
process
public void process(Object row,
ObjectInspector rowInspector)
throws HiveException
- Specified by:
process
in class Operator<reduceSinkDesc>
- Throws:
HiveException
getName
public String getName()
- Description copied from class:
Operator
- Implements the getName function for the Node Interface.
- Specified by:
getName
in interface Node
- Overrides:
getName
in class Operator<reduceSinkDesc>
- Returns:
- the name of the operator
Copyright © 2009 The Apache Software Foundation