public class MapredContext
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
close() |
static MapredContext |
get() |
JobConf |
getJobConf()
Returns JobConf.
|
Reporter |
getReporter()
Returns Reporter, which is set right before reading the first row.
|
static MapredContext |
init(boolean isMap,
JobConf jobConf) |
boolean |
isMap()
Returns whether the UDF is called from Map or Reduce task.
|
void |
setReporter(Reporter reporter) |
public static MapredContext get()
public static MapredContext init(boolean isMap, JobConf jobConf)
public static void close()
public boolean isMap()
public Reporter getReporter()
public JobConf getJobConf()
public void setReporter(Reporter reporter)
Copyright © 2012 The Apache Software Foundation