@Internal public class StateChangelogHandleStreamHandleReader extends Object implements StateChangelogHandleReader<ChangelogStateHandleStreamImpl>
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.| Modifier and Type | Class and Description |
|---|---|
static interface |
StateChangelogHandleStreamHandleReader.StateChangeIterator
Reads a stream of state changes starting from a specified offset.
|
| Constructor and Description |
|---|
StateChangelogHandleStreamHandleReader(StateChangelogHandleStreamHandleReader.StateChangeIterator changeIterator) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.util.CloseableIterator<StateChange> |
getChanges(ChangelogStateHandleStreamImpl handle) |
public StateChangelogHandleStreamHandleReader(StateChangelogHandleStreamHandleReader.StateChangeIterator changeIterator)
public org.apache.flink.util.CloseableIterator<StateChange> getChanges(ChangelogStateHandleStreamImpl handle) throws IOException
getChanges in interface StateChangelogHandleReader<ChangelogStateHandleStreamImpl>IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.