org.apache.hadoop.hive.ql.exec
Class MapOperator

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

Nested Class Summary
static class MapOperator.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
alias, childOperators, conf, done, gWork, id, joinAlias, LOG, out, parentOperators, reporter, statsMap
 
Constructor Summary
MapOperator()
           
 
Method Summary
 void initialize(org.apache.hadoop.conf.Configuration hconf, org.apache.hadoop.mapred.Reporter reporter)
           
 void process(Object row, ObjectInspector rowInspector)
           
 void process(org.apache.hadoop.io.Writable value)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.Operator
close, dump, endGroup, forward, getChildOperators, getChildren, getConf, getDone, getName, 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
 

Constructor Detail

MapOperator

public MapOperator()
Method Detail

initialize

public void initialize(org.apache.hadoop.conf.Configuration hconf,
                       org.apache.hadoop.mapred.Reporter reporter)
                throws HiveException
Overrides:
initialize 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,
                    ObjectInspector rowInspector)
             throws HiveException
Specified by:
process in class Operator<mapredWork>
Throws:
HiveException


Copyright © 2009 The Apache Software Foundation