@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 |
---|---|
CloseableIterator<StateChange> |
getChanges(ChangelogStateHandleStreamImpl handle) |
public StateChangelogHandleStreamHandleReader(StateChangelogHandleStreamHandleReader.StateChangeIterator changeIterator)
public CloseableIterator<StateChange> getChanges(ChangelogStateHandleStreamImpl handle) throws IOException
getChanges
in interface StateChangelogHandleReader<ChangelogStateHandleStreamImpl>
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.