public abstract class SparkCounterGroup<T>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SparkCounterGroup.LongSparkCounterGroup |
static class |
SparkCounterGroup.MapSparkCounterGroup |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
groupDisplayName |
protected java.lang.String |
groupName |
protected JavaSparkContext |
javaSparkContext |
protected java.util.Map<java.lang.String,SparkCounter<T>> |
sparkCounters |
Constructor and Description |
---|
SparkCounterGroup(java.lang.String groupName,
java.lang.String groupDisplayName,
JavaSparkContext javaSparkContext) |
Modifier and Type | Method and Description |
---|---|
abstract void |
createCounter(java.lang.String name,
T initValue) |
SparkCounter |
getCounter(java.lang.String name) |
java.lang.String |
getGroupDisplayName() |
java.lang.String |
getGroupName() |
java.util.Map<java.lang.String,SparkCounter<T>> |
getSparkCounters() |
void |
setGroupDisplayName(java.lang.String groupDisplayName) |
protected java.lang.String groupName
protected java.lang.String groupDisplayName
protected java.util.Map<java.lang.String,SparkCounter<T>> sparkCounters
protected transient JavaSparkContext javaSparkContext
public SparkCounterGroup(java.lang.String groupName, java.lang.String groupDisplayName, JavaSparkContext javaSparkContext)
public abstract void createCounter(java.lang.String name, T initValue)
public SparkCounter getCounter(java.lang.String name)
public java.lang.String getGroupName()
public java.lang.String getGroupDisplayName()
public void setGroupDisplayName(java.lang.String groupDisplayName)
public java.util.Map<java.lang.String,SparkCounter<T>> getSparkCounters()
Copyright © 2007-2017 The Apache Software Foundation