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