public class MapredContext extends Object
Modifier | Constructor and Description |
---|---|
protected |
MapredContext(boolean isMap,
org.apache.hadoop.mapred.JobConf jobConf) |
Modifier and Type | Method and Description |
---|---|
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) |
protected MapredContext(boolean isMap, org.apache.hadoop.mapred.JobConf jobConf)
public static MapredContext get()
public static MapredContext init(boolean isMap, org.apache.hadoop.mapred.JobConf jobConf)
public static void close()
public boolean isMap()
public org.apache.hadoop.mapred.Reporter getReporter()
public org.apache.hadoop.mapred.JobConf getJobConf()
public void setReporter(org.apache.hadoop.mapred.Reporter reporter)
Copyright © 2017 The Apache Software Foundation. All rights reserved.