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

    Modifier and Type
    Method
    Description
    Returns the next operation in the snapshot or null 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.

    Methods inherited from interface java.io.Closeable

    close
  • 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. Unlike totalOperations(), this value is updated each time after next()) is called.
    • next

      Returns the next operation in the snapshot or null if we reached the end.
      Throws:
      IOException