|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. |
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.Operator |
---|
HIVECOUNTERCREATEDFILES, HIVECOUNTERFATAL |
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()
|
org.apache.hadoop.hive.ql.plan.api.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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
HiveException
public void closeOp(boolean abort) throws HiveException
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.
HiveException
public String getName()
Operator
getName
in interface Node
getName
in class Operator<MapWork>
public static String getOperatorName()
public org.apache.hadoop.hive.ql.plan.api.OperatorType getType()
Operator
getType
in class Operator<MapWork>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |