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 forChangelogStateHandleStreamImplthat iterates over its underlyingstream handlesand offsets. Starting from each offset, it enumerates thestate changesusing the providedStateChangelogHandleStreamHandleReader.StateChangeIterator. DifferentStateChangelogStorageimplementations 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 interfaceStateChangelogHandleStreamHandleReader.StateChangeIteratorReads 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 org.apache.flink.util.CloseableIterator<StateChange>getChanges(ChangelogStateHandleStreamImpl handle)
-
-
-
Constructor Detail
-
StateChangelogHandleStreamHandleReader
public StateChangelogHandleStreamHandleReader(StateChangelogHandleStreamHandleReader.StateChangeIterator changeIterator)
-
-
Method Detail
-
getChanges
public org.apache.flink.util.CloseableIterator<StateChange> getChanges(ChangelogStateHandleStreamImpl handle) throws IOException
- Specified by:
getChangesin interfaceStateChangelogHandleReader<ChangelogStateHandleStreamImpl>- Throws:
IOException
-
-