Class StateChangelogHandleStreamHandleReader
java.lang.Object
org.apache.flink.runtime.state.changelog.StateChangelogHandleStreamHandleReader
- All Implemented Interfaces:
StateChangelogHandleReader<ChangelogStateHandleStreamImpl>
@Internal
public class StateChangelogHandleStreamHandleReader
extends Object
implements StateChangelogHandleReader<ChangelogStateHandleStreamImpl>
A reader for
ChangelogStateHandleStreamImpl that iterates over its underlying stream handles and offsets. Starting from each offset, it enumerates the
state changes using the provided StateChangelogHandleStreamHandleReader.StateChangeIterator. Different
StateChangelogStorage implementations may have different iterator implementations.
Using a different ChangelogStateHandle (and reader) is problematic as it needs to be
serialized.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReads a stream of state changes starting from a specified offset. -
Constructor Summary
ConstructorsConstructorDescriptionStateChangelogHandleStreamHandleReader(StateChangelogHandleStreamHandleReader.StateChangeIterator changeIterator) -
Method Summary
-
Constructor Details
-
StateChangelogHandleStreamHandleReader
public StateChangelogHandleStreamHandleReader(StateChangelogHandleStreamHandleReader.StateChangeIterator changeIterator)
-
-
Method Details
-
getChanges
public org.apache.flink.util.CloseableIterator<StateChange> getChanges(ChangelogStateHandleStreamImpl handle) throws IOException - Specified by:
getChangesin interfaceStateChangelogHandleReader<ChangelogStateHandleStreamImpl>- Throws:
IOException
-