Class MergeOperatorStates

  • All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.GroupReduceFunction<org.apache.flink.runtime.checkpoint.OperatorState,​org.apache.flink.runtime.checkpoint.metadata.CheckpointMetadata>

    @Internal
    public class MergeOperatorStates
    extends Object
    implements org.apache.flink.api.common.functions.GroupReduceFunction<org.apache.flink.runtime.checkpoint.OperatorState,​org.apache.flink.runtime.checkpoint.metadata.CheckpointMetadata>
    A reducer that aggregates multiple OperatorState's into a single CheckpointMetadata.
    See Also:
    Serialized Form
    • Constructor Detail

      • MergeOperatorStates

        public MergeOperatorStates​(Collection<org.apache.flink.runtime.checkpoint.MasterState> masterStates)
    • Method Detail

      • reduce

        public void reduce​(Iterable<org.apache.flink.runtime.checkpoint.OperatorState> values,
                           org.apache.flink.util.Collector<org.apache.flink.runtime.checkpoint.metadata.CheckpointMetadata> out)
        Specified by:
        reduce in interface org.apache.flink.api.common.functions.GroupReduceFunction<org.apache.flink.runtime.checkpoint.OperatorState,​org.apache.flink.runtime.checkpoint.metadata.CheckpointMetadata>