public class AggregatorsAccumulator
extends java.lang.Object
Accumulators
are required to be wrapped in a Singleton.Modifier and Type | Class and Description |
---|---|
static class |
AggregatorsAccumulator.AccumulatorCheckpointingSparkListener
Spark Listener which checkpoints
NamedAggregators values for fault-tolerance. |
Constructor and Description |
---|
AggregatorsAccumulator() |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
static org.apache.spark.Accumulator<NamedAggregators> |
getInstance() |
static void |
init(SparkPipelineOptions opts,
org.apache.spark.api.java.JavaSparkContext jsc)
Init aggregators accumulator if it has not been initiated.
|
public static void init(SparkPipelineOptions opts, org.apache.spark.api.java.JavaSparkContext jsc)
public static org.apache.spark.Accumulator<NamedAggregators> getInstance()
public static void clear()