org.apache.hadoop.hive.ql.exec
Class MapOperator
java.lang.Object
org.apache.hadoop.hive.ql.exec.Operator<mapredWork>
org.apache.hadoop.hive.ql.exec.MapOperator
- All Implemented Interfaces:
- Serializable, Node
public class MapOperator
- extends Operator<mapredWork>
- implements Serializable
Map operator. This triggers overall map side processing.
This is a little different from regular operators in that
it starts off by processing a Writable data structure from
a Table (instead of a Hive Object).
- See Also:
- Serialized Form
Fields inherited from class org.apache.hadoop.hive.ql.exec.Operator |
alias, childOperators, childOperatorsArray, childOperatorsTag, colExprMap, conf, done, id, inputObjInspectors, LOG, out, outputObjInspector, parentOperators, reporter, state, statsMap |
Method Summary |
void |
closeOp(boolean abort)
close extra child operators that are initialized but are not executed. |
String |
getName()
Implements the getName function for the Node Interface. |
void |
initializeAsRoot(org.apache.hadoop.conf.Configuration hconf,
mapredWork mrwork)
Initializes this map op as the root of the tree. |
void |
initializeOp(org.apache.hadoop.conf.Configuration hconf)
Operator specific initialization. |
void |
process(Object row,
int tag)
Process the row. |
void |
process(org.apache.hadoop.io.Writable value)
|
void |
setChildren(org.apache.hadoop.conf.Configuration hconf)
|
Methods inherited from class org.apache.hadoop.hive.ql.exec.Operator |
areAllParentsInitialized, close, dump, endGroup, forward, getChildOperators, getChildren, getColumnExprMap, getConf, getDone, getIdentifier, getParentOperators, getSchema, getStats, initEvaluators, initEvaluatorsAndReturnStruct, initialize, initializeChildren, jobClose, logStats, preorderMap, removeChild, replaceChild, replaceParent, resetStats, setAlias, setChildOperators, setColumnExprMap, setConf, setDone, setId, setOutputCollector, setParentOperators, setReporter, setSchema, startGroup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapOperator
public MapOperator()
initializeAsRoot
public void initializeAsRoot(org.apache.hadoop.conf.Configuration hconf,
mapredWork mrwork)
throws HiveException
- Initializes this map op as the root of the tree. It sets JobConf & MapRedWork
and starts initialization of the operator tree rooted at this op.
- Parameters:
hconf
- mrwork
-
- Throws:
HiveException
setChildren
public void setChildren(org.apache.hadoop.conf.Configuration hconf)
throws HiveException
- Throws:
HiveException
initializeOp
public void initializeOp(org.apache.hadoop.conf.Configuration hconf)
throws HiveException
- Description copied from class:
Operator
- Operator specific initialization.
- Overrides:
initializeOp
in class Operator<mapredWork>
- Throws:
HiveException
closeOp
public void closeOp(boolean abort)
throws HiveException
- close extra child operators that are initialized but are not executed.
- Overrides:
closeOp
in class Operator<mapredWork>
- Throws:
HiveException
process
public void process(org.apache.hadoop.io.Writable value)
throws HiveException
- Throws:
HiveException
process
public void process(Object row,
int tag)
throws HiveException
- Description copied from class:
Operator
- Process the row.
- Specified by:
process
in class Operator<mapredWork>
- 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
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<mapredWork>
- Returns:
- the name of the operator
Copyright © 2009 The Apache Software Foundation