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 Summary
ConstructorsConstructorDescriptionMergeOperatorStates(Collection<org.apache.flink.runtime.checkpoint.MasterState> masterStates) -
Method Summary
-
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:
reducein interfaceorg.apache.flink.api.common.functions.GroupReduceFunction<org.apache.flink.runtime.checkpoint.OperatorState,org.apache.flink.runtime.checkpoint.metadata.CheckpointMetadata>
-