Class MergeOperatorStates

java.lang.Object
org.apache.flink.state.api.output.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:
  • Constructor Details

    • MergeOperatorStates

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

    • 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>