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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.Operator<scriptDesc>
      extended by org.apache.hadoop.hive.ql.exec.ScriptOperator
All Implemented Interfaces:
Serializable, Node

public class ScriptOperator
extends Operator<scriptDesc>
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class ScriptOperator.Counter
           
 class ScriptOperator.PathFinder
          Maps a relative pathname to an absolute pathname using the PATH enviroment.
 
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
ScriptOperator()
           
 
Method Summary
protected  String[] addWrapper(String[] inArgs)
          Wrap the script in a wrapper that allows admins to control
 void close(boolean abort)
           
 void initialize(org.apache.hadoop.conf.Configuration hconf, org.apache.hadoop.mapred.Reporter reporter)
           
 void process(Object row, ObjectInspector rowInspector)
           
static String[] splitArgs(String args)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.Operator
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

ScriptOperator

public ScriptOperator()
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<scriptDesc>
Throws:
HiveException

process

public void process(Object row,
                    ObjectInspector rowInspector)
             throws HiveException
Specified by:
process in class Operator<scriptDesc>
Throws:
HiveException

close

public void close(boolean abort)
           throws HiveException
Overrides:
close in class Operator<scriptDesc>
Throws:
HiveException

addWrapper

protected String[] addWrapper(String[] inArgs)
Wrap the script in a wrapper that allows admins to control


splitArgs

public static String[] splitArgs(String args)


Copyright © 2009 The Apache Software Foundation