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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.MapredContext
Direct Known Subclasses:
TezContext

public class MapredContext
extends Object

Runtime context of MapredTask providing additional information to GenericUDF


Method Summary
static void close()
           
static MapredContext get()
           
 org.apache.hadoop.mapred.JobConf getJobConf()
          Returns JobConf.
 org.apache.hadoop.mapred.Reporter getReporter()
          Returns Reporter, which is set right before reading the first row.
static MapredContext init(boolean isMap, org.apache.hadoop.mapred.JobConf jobConf)
           
 boolean isMap()
          Returns whether the UDF is called from Map or Reduce task.
 void setReporter(org.apache.hadoop.mapred.Reporter reporter)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static MapredContext get()

init

public static MapredContext init(boolean isMap,
                                 org.apache.hadoop.mapred.JobConf jobConf)

close

public static void close()

isMap

public boolean isMap()
Returns whether the UDF is called from Map or Reduce task.


getReporter

public org.apache.hadoop.mapred.Reporter getReporter()
Returns Reporter, which is set right before reading the first row.


getJobConf

public org.apache.hadoop.mapred.JobConf getJobConf()
Returns JobConf.


setReporter

public void setReporter(org.apache.hadoop.mapred.Reporter reporter)


Copyright © 2014 The Apache Software Foundation. All rights reserved.