Class ValueStoreWalReader
java.lang.Object
org.eclipse.rdf4j.sail.nativerdf.wal.ValueStoreWalReader
- All Implemented Interfaces:
AutoCloseable
Reader for ValueStore WAL segments that yields minted records in LSN order across segments. It tolerates truncated or
missing tail data by stopping at the last valid record observed. Completeness can be queried via
isComplete() and by inspecting ValueStoreWalReader.ScanResult.complete().-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResult of a full WAL scan. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()iterator()On-demand iterator over minted WAL records.longHighest valid LSN observed during reading (iterator/scan).static ValueStoreWalReaderopen(ValueStoreWalConfig config) Create a reader for the given configuration.scan()Scan the WAL and return all minted records together with bookkeeping about last valid LSN and completeness.
-
Method Details
-
open
Create a reader for the given configuration. No I/O is performed until iteration begins. -
scan
Scan the WAL and return all minted records together with bookkeeping about last valid LSN and completeness.- Throws:
IOException
-
iterator
On-demand iterator over minted WAL records. -
lastValidLsn
public long lastValidLsn()Highest valid LSN observed during reading (iterator/scan). -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-