public class AccumulatorRegistry extends Object
Modifier and Type | Field and Description |
---|---|
protected JobID |
jobID |
protected static org.slf4j.Logger |
LOG |
protected ExecutionAttemptID |
taskID |
Constructor and Description |
---|
AccumulatorRegistry(JobID jobID,
ExecutionAttemptID taskID) |
Modifier and Type | Method and Description |
---|---|
AccumulatorSnapshot |
getSnapshot()
Creates a snapshot of this accumulator registry.
|
Map<String,Accumulator<?,?>> |
getUserMap()
Gets the map for user-defined accumulators.
|
protected static final org.slf4j.Logger LOG
protected final JobID jobID
protected final ExecutionAttemptID taskID
public AccumulatorRegistry(JobID jobID, ExecutionAttemptID taskID)
public AccumulatorSnapshot getSnapshot()
public Map<String,Accumulator<?,?>> getUserMap()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.