Package org.elasticsearch.index.translog
Interface Translog.Snapshot
-
- All Superinterfaces:
AutoCloseable,Closeable
- Enclosing class:
- Translog
public static interface Translog.Snapshot extends Closeable
A snapshot of the transaction log, allows to iterate over all the transaction log operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Translog.Operationnext()Returns the next operation in the snapshot ornullif we reached the end.default intskippedOperations()The number of operations have been skipped (overridden or trimmed) in the snapshot so far.inttotalOperations()The total estimated number of operations in the snapshot.
-
-
-
Method Detail
-
totalOperations
int totalOperations()
The total estimated number of operations in the snapshot.
-
skippedOperations
default int skippedOperations()
The number of operations have been skipped (overridden or trimmed) in the snapshot so far. UnliketotalOperations(), this value is updated each time afternext()) is called.
-
next
Translog.Operation next() throws IOException
Returns the next operation in the snapshot ornullif we reached the end.- Throws:
IOException
-
-