public class SparkReporter extends Object implements org.apache.hadoop.mapred.Reporter, Serializable
Constructor and Description |
---|
SparkReporter(SparkCounters sparkCounters) |
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() |
String |
getStatus() |
void |
incrCounter(Enum<?> key,
long amount) |
void |
incrCounter(String group,
String counter,
long amount) |
void |
progress() |
void |
setStatus(String status) |
public SparkReporter(SparkCounters sparkCounters)
public void setStatus(String status)
setStatus
in interface org.apache.hadoop.mapred.Reporter
public String getStatus()
public org.apache.hadoop.mapred.Counters.Counter getCounter(Enum<?> name)
getCounter
in interface org.apache.hadoop.mapred.Reporter
public org.apache.hadoop.mapred.Counters.Counter getCounter(String group, String name)
getCounter
in interface org.apache.hadoop.mapred.Reporter
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 org.apache.hadoop.mapred.InputSplit getInputSplit()
getInputSplit
in interface org.apache.hadoop.mapred.Reporter
public float getProgress()
getProgress
in interface org.apache.hadoop.mapred.Reporter
public void progress()
progress
in interface org.apache.hadoop.util.Progressable
Copyright © 2017 The Apache Software Foundation. All rights reserved.