AccumulableInfo¶
AccumulableInfo represents an update to an AccumulatorV2.
AccumulableInfo is used to transfer accumulator updates from executors to the driver every executor heartbeat or when a task finishes.
Creating Instance¶
AccumulableInfo takes the following to be created:
- Accumulator ID
- Name
- Partial Update
- Partial Value
- internal flag
-
countFailedValuesflag - Metadata (default:
None)
AccumulableInfo is created when:
AccumulatorV2is requested to convert itself to an AccumulableInfoJsonProtocolis requested to accumulableInfoFromJsonSQLMetric(Spark SQL) is requested to convert itself to anAccumulableInfo
internal Flag¶
internal: Boolean
AccumulableInfo is given an internal flag when created.
internal flag denotes whether this accumulator is internal.
internal is used when:
LiveEntityHelpersis requested fornewAccumulatorInfosJsonProtocolis requested to accumulableInfoToJson