public class SparkCounters extends Object implements Serializable, PigWarnCounter
Constructor and Description |
---|
SparkCounters(JavaSparkContext javaSparkContext) |
Modifier and Type | Method and Description |
---|---|
void |
createCounter(Enum<?> key) |
void |
createCounter(String groupName,
Enum<?> key) |
void |
createCounter(String groupName,
String counterName) |
void |
createCounter(String groupName,
String counterName,
Object initValue) |
SparkCounter |
getCounter(Enum<?> key) |
SparkCounter |
getCounter(String groupName,
String counterName) |
Map<String,SparkCounterGroup> |
getSparkCounterGroups() |
Object |
getValue(String groupName,
String counterName) |
void |
increment(Enum<?> key,
long incrValue) |
void |
increment(String groupName,
String counterName,
long value) |
boolean |
incrWarnCounter(Enum<?> name,
Object incr) |
boolean |
incrWarnCounter(String group,
String name,
Object incr) |
public void createCounter(Enum<?> key)
public void increment(Enum<?> key, long incrValue)
public SparkCounter getCounter(String groupName, String counterName)
public SparkCounter getCounter(Enum<?> key)
public Map<String,SparkCounterGroup> getSparkCounterGroups()
public boolean incrWarnCounter(Enum<?> name, Object incr)
incrWarnCounter
in interface PigWarnCounter
public boolean incrWarnCounter(String group, String name, Object incr)
incrWarnCounter
in interface PigWarnCounter
Copyright © 2007-2017 The Apache Software Foundation