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