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 forChangelogStateHandleStreamImpl
that iterates over its underlyingstream handles
and offsets. Starting from each offset, it enumerates thestate changes
using the providedStateChangelogHandleStreamHandleReader.StateChangeIterator
. DifferentStateChangelogStorage
implementations may have different iterator implementations. Using a differentChangelogStateHandle
(and reader) is problematic as it needs to be serialized.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StateChangelogHandleStreamHandleReader.StateChangeIterator
Reads a stream of state changes starting from a specified offset.
-
Constructor Summary
Constructors Constructor Description StateChangelogHandleStreamHandleReader(StateChangelogHandleStreamHandleReader.StateChangeIterator changeIterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableIterator<StateChange>
getChanges(ChangelogStateHandleStreamImpl handle)
-
-
-
Constructor Detail
-
StateChangelogHandleStreamHandleReader
public StateChangelogHandleStreamHandleReader(StateChangelogHandleStreamHandleReader.StateChangeIterator changeIterator)
-
-
Method Detail
-
getChanges
public CloseableIterator<StateChange> getChanges(ChangelogStateHandleStreamImpl handle) throws IOException
- Specified by:
getChanges
in interfaceStateChangelogHandleReader<ChangelogStateHandleStreamImpl>
- Throws:
IOException
-
-