Class AccumulatorSnapshot
java.lang.Object
org.apache.flink.runtime.accumulators.AccumulatorSnapshot
- All Implemented Interfaces:
Serializable
This class encapsulates a map of accumulators for a single task. It is used for the transfer from
TaskManagers to the JobManager and from the JobManager to the Client.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAccumulatorSnapshot(org.apache.flink.api.common.JobID jobID, ExecutionAttemptID executionAttemptID, Map<String, org.apache.flink.api.common.accumulators.Accumulator<?, ?>> userAccumulators) -
Method Summary
Modifier and TypeMethodDescriptiondeserializeUserAccumulators(ClassLoader classLoader) Gets the user-defined accumulators values.org.apache.flink.api.common.JobIDgetJobID()
-
Constructor Details
-
AccumulatorSnapshot
public AccumulatorSnapshot(org.apache.flink.api.common.JobID jobID, ExecutionAttemptID executionAttemptID, Map<String, org.apache.flink.api.common.accumulators.Accumulator<?, throws IOException?>> userAccumulators) - Throws:
IOException
-
-
Method Details
-
getJobID
public org.apache.flink.api.common.JobID getJobID() -
getExecutionAttemptID
-
deserializeUserAccumulators
public Map<String,org.apache.flink.api.common.accumulators.Accumulator<?, deserializeUserAccumulators?>> (ClassLoader classLoader) throws IOException, ClassNotFoundException Gets the user-defined accumulators values.- Returns:
- the serialized map
- Throws:
IOExceptionClassNotFoundException
-