@Internal public class MergeOperatorStates extends Object implements GroupReduceFunction<OperatorState,CheckpointMetadata>
OperatorState
's into a single CheckpointMetadata
.Constructor and Description |
---|
MergeOperatorStates(Collection<MasterState> masterStates) |
Modifier and Type | Method and Description |
---|---|
void |
reduce(Iterable<OperatorState> values,
Collector<CheckpointMetadata> out)
The reduce method.
|
public MergeOperatorStates(Collection<MasterState> masterStates)
public void reduce(Iterable<OperatorState> values, Collector<CheckpointMetadata> out)
GroupReduceFunction
reduce
in interface GroupReduceFunction<OperatorState,CheckpointMetadata>
values
- All records that belong to the given input key.out
- The collector to hand results to.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.