public class SparkCounter
extends org.apache.hadoop.mapred.Counters.Counter
Constructor and Description |
---|
SparkCounter(String group,
String name,
org.apache.spark.Accumulator<Map<String,Map<String,Long>>> accum) |
SparkCounter(String group,
String name,
long value) |
Modifier and Type | Method and Description |
---|---|
long |
getCounter() |
String |
getDisplayName() |
String |
getName() |
long |
getValue() |
void |
increment(long inc) |
void |
setValue(long newValue) |
public SparkCounter(String group, String name, org.apache.spark.Accumulator<Map<String,Map<String,Long>>> accum)
public String getName()
getName
in interface org.apache.hadoop.mapreduce.Counter
getName
in class org.apache.hadoop.mapred.Counters.Counter
public String getDisplayName()
getDisplayName
in interface org.apache.hadoop.mapreduce.Counter
getDisplayName
in class org.apache.hadoop.mapred.Counters.Counter
public long getValue()
getValue
in interface org.apache.hadoop.mapreduce.Counter
getValue
in class org.apache.hadoop.mapred.Counters.Counter
public long getCounter()
getCounter
in class org.apache.hadoop.mapred.Counters.Counter
public void increment(long inc)
increment
in interface org.apache.hadoop.mapreduce.Counter
increment
in class org.apache.hadoop.mapred.Counters.Counter
public void setValue(long newValue)
setValue
in interface org.apache.hadoop.mapreduce.Counter
setValue
in class org.apache.hadoop.mapred.Counters.Counter
Copyright © 2017 The Apache Software Foundation. All rights reserved.