Interface TxnLog.TxnIterator

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    FileTxnLog.FileTxnIterator
    Enclosing interface:
    TxnLog

    public static interface TxnLog.TxnIterator
    extends java.io.Closeable
    an iterating interface for reading transaction logs.
    • Method Detail

      • getHeader

        TxnHeader getHeader()
        return the transaction header.
        Returns:
        return the transaction header.
      • getTxn

        Record getTxn()
        return the transaction record.
        Returns:
        return the transaction record.
      • getDigest

        TxnDigest getDigest()
        Returns:
        the digest associated with the transaction.
      • next

        boolean next()
              throws java.io.IOException
        go to the next transaction record.
        Throws:
        java.io.IOException
      • close

        void close()
            throws java.io.IOException
        close files and release the resources
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • getStorageSize

        long getStorageSize()
                     throws java.io.IOException
        Get an estimated storage space used to store transaction records that will return by this iterator
        Throws:
        java.io.IOException