|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.exec.Operator<MapWork>
org.apache.hadoop.hive.ql.exec.MapOperator
public class MapOperator
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).
| Nested Class Summary | |
|---|---|
static class |
MapOperator.Counter
Counter. |
protected static class |
MapOperator.MapOpCtx
|
| Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.Operator |
|---|
Operator.OperatorFunc, Operator.State |
| Field Summary | |
|---|---|
protected MapOperator.MapOpCtx |
current
|
| Fields inherited from class org.apache.hadoop.hive.ql.exec.Operator |
|---|
alias, childOperators, childOperatorsArray, childOperatorsTag, colExprMap, conf, done, groupKeyObject, groupKeyOI, HIVECOUNTERCREATEDFILES, HIVECOUNTERFATAL, id, inputObjInspectors, isLogInfoEnabled, LOG, operatorId, out, outputObjInspector, parentOperators, reporter, state, statsMap |
| Constructor Summary | |
|---|---|
MapOperator()
|
|
| Method Summary | |
|---|---|
void |
cleanUpInputFileChangedOp()
|
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. |
static String |
getOperatorName()
|
OperatorType |
getType()
Return the type of the specific operator among the types in OperatorType. |
void |
initializeAsRoot(org.apache.hadoop.conf.Configuration hconf,
MapWork mapWork)
Initializes this map op as the root of the tree. |
void |
initializeOp(org.apache.hadoop.conf.Configuration hconf)
Operator specific initialization. |
static org.apache.hadoop.io.Writable[] |
populateVirtualColumnValues(ExecMapperContext ctx,
List<VirtualColumn> vcs,
org.apache.hadoop.io.Writable[] vcValues,
Deserializer deserializer)
|
void |
process(org.apache.hadoop.io.Writable value)
|
void |
processOp(Object row,
int tag)
Process the row. |
void |
setChildren(org.apache.hadoop.conf.Configuration hconf)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient MapOperator.MapOpCtx current
| Constructor Detail |
|---|
public MapOperator()
| Method Detail |
|---|
public void initializeAsRoot(org.apache.hadoop.conf.Configuration hconf,
MapWork mapWork)
throws HiveException
hconf - mrwork -
HiveException
public void setChildren(org.apache.hadoop.conf.Configuration hconf)
throws HiveException
HiveException
public void initializeOp(org.apache.hadoop.conf.Configuration hconf)
throws HiveException
Operator
initializeOp in class Operator<MapWork>HiveException
public void closeOp(boolean abort)
throws HiveException
closeOp in class Operator<MapWork>HiveException
public void cleanUpInputFileChangedOp()
throws HiveException
cleanUpInputFileChangedOp in class Operator<MapWork>HiveException
public void process(org.apache.hadoop.io.Writable value)
throws HiveException
HiveException
public static org.apache.hadoop.io.Writable[] populateVirtualColumnValues(ExecMapperContext ctx,
List<VirtualColumn> vcs,
org.apache.hadoop.io.Writable[] vcValues,
Deserializer deserializer)
public void processOp(Object row,
int tag)
throws HiveException
Operator
processOp in class Operator<MapWork>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.
HiveExceptionpublic String getName()
Operator
getName in interface NodegetName in class Operator<MapWork>public static String getOperatorName()
public OperatorType getType()
Operator
getType in class Operator<MapWork>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||