Class AccumulatorRegistry
- java.lang.Object
-
- org.apache.flink.runtime.accumulators.AccumulatorRegistry
-
public class AccumulatorRegistry extends Object
Main accumulator registry which encapsulates user-defined accumulators.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.flink.api.common.JobIDjobIDprotected static org.slf4j.LoggerLOGprotected ExecutionAttemptIDtaskID
-
Constructor Summary
Constructors Constructor Description AccumulatorRegistry(org.apache.flink.api.common.JobID jobID, ExecutionAttemptID taskID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccumulatorSnapshotgetSnapshot()Creates a snapshot of this accumulator registry.Map<String,org.apache.flink.api.common.accumulators.Accumulator<?,?>>getUserMap()Gets the map for user-defined accumulators.
-
-
-
Field Detail
-
LOG
protected static final org.slf4j.Logger LOG
-
jobID
protected final org.apache.flink.api.common.JobID jobID
-
taskID
protected final ExecutionAttemptID taskID
-
-
Constructor Detail
-
AccumulatorRegistry
public AccumulatorRegistry(org.apache.flink.api.common.JobID jobID, ExecutionAttemptID taskID)
-
-
Method Detail
-
getSnapshot
public AccumulatorSnapshot getSnapshot()
Creates a snapshot of this accumulator registry.- Returns:
- a serialized accumulator map
-
-