public abstract class SparkCounter<T>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SparkCounter.LongSparkCounter |
static class |
SparkCounter.MapSparkCounter |
Constructor and Description |
---|
SparkCounter() |
SparkCounter(java.lang.String name,
java.lang.String displayName,
java.lang.String groupName,
T initValue,
JavaSparkContext sparkContext) |
Modifier and Type | Method and Description |
---|---|
protected abstract <any> |
createAccumulatorParam() |
java.lang.String |
getDisplayName() |
java.lang.String |
getName() |
T |
getValue() |
void |
increment(T incr) |
void |
setDisplayName(java.lang.String displayName) |
public SparkCounter()
public SparkCounter(java.lang.String name, java.lang.String displayName, java.lang.String groupName, T initValue, JavaSparkContext sparkContext)
protected abstract <any> createAccumulatorParam()
public T getValue()
public void increment(T incr)
public java.lang.String getName()
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
Copyright © 2007-2017 The Apache Software Foundation