Module org.elasticsearch.server
Package org.elasticsearch.index.translog
Interface Translog.Snapshot
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
LuceneChangesSnapshot
,LuceneSyntheticSourceChangesSnapshot
,SearchBasedChangesSnapshot
- Enclosing class:
Translog
A snapshot of the transaction log, allows to iterate over all the transaction log operations.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionnext()
Returns the next operation in the snapshot ornull
if we reached the end.default int
The number of operations have been skipped (overridden or trimmed) in the snapshot so far.int
The total estimated number of operations in the snapshot.
-
Field Details
-
EMPTY
-
-
Method Details
-
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
Returns the next operation in the snapshot ornull
if we reached the end.- Throws:
IOException
-