@InterfaceAudience.Private
@InterfaceStability.Unstable
public class MRTaskReporter
extends org.apache.hadoop.mapreduce.StatusReporter
implements org.apache.hadoop.mapred.Reporter
Constructor and Description |
---|
MRTaskReporter(org.apache.tez.runtime.api.InputContext context) |
MRTaskReporter(org.apache.tez.runtime.api.OutputContext context) |
MRTaskReporter(org.apache.tez.runtime.api.ProcessorContext context) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapred.Counters.Counter |
getCounter(Enum<?> name) |
org.apache.hadoop.mapred.Counters.Counter |
getCounter(String group,
String name) |
org.apache.hadoop.mapred.InputSplit |
getInputSplit() |
float |
getProgress() |
void |
incrCounter(Enum<?> key,
long amount) |
void |
incrCounter(String group,
String counter,
long amount) |
void |
progress() |
void |
setInputSplit(org.apache.hadoop.mapred.InputSplit split) |
void |
setProgress(float progress) |
void |
setStatus(String status) |
public MRTaskReporter(org.apache.tez.runtime.api.ProcessorContext context)
public MRTaskReporter(org.apache.tez.runtime.api.OutputContext context)
public MRTaskReporter(org.apache.tez.runtime.api.InputContext context)
public void setProgress(float progress)
public void setStatus(String status)
setStatus
in interface org.apache.hadoop.mapred.Reporter
setStatus
in class org.apache.hadoop.mapreduce.StatusReporter
public float getProgress()
getProgress
in interface org.apache.hadoop.mapred.Reporter
getProgress
in class org.apache.hadoop.mapreduce.StatusReporter
public void progress()
progress
in interface org.apache.hadoop.util.Progressable
progress
in class org.apache.hadoop.mapreduce.StatusReporter
public org.apache.hadoop.mapred.Counters.Counter getCounter(String group, String name)
getCounter
in interface org.apache.hadoop.mapred.Reporter
getCounter
in class org.apache.hadoop.mapreduce.StatusReporter
public org.apache.hadoop.mapred.Counters.Counter getCounter(Enum<?> name)
getCounter
in interface org.apache.hadoop.mapred.Reporter
getCounter
in class org.apache.hadoop.mapreduce.StatusReporter
public void incrCounter(Enum<?> key, long amount)
incrCounter
in interface org.apache.hadoop.mapred.Reporter
public void incrCounter(String group, String counter, long amount)
incrCounter
in interface org.apache.hadoop.mapred.Reporter
public void setInputSplit(org.apache.hadoop.mapred.InputSplit split)
public org.apache.hadoop.mapred.InputSplit getInputSplit() throws UnsupportedOperationException
getInputSplit
in interface org.apache.hadoop.mapred.Reporter
UnsupportedOperationException
Copyright © 2017 Apache Software Foundation. All rights reserved.