Interface TxnLog.TxnIterator
- All Superinterfaces:
AutoCloseable, Closeable
- All Known Implementing Classes:
FileTxnLog.FileTxnIterator
- Enclosing interface:
TxnLog
an iterating interface for reading
transaction logs.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close files and release the resourcesreturn the transaction header.longGet an estimated storage space used to store transaction records that will return by this iteratorgetTxn()return the transaction record.booleannext()go to the next transaction record.
-
Method Details
-
getHeader
-
getTxn
-
getDigest
TxnDigest getDigest()- Returns:
- the digest associated with the transaction.
-
next
-
close
close files and release the resources- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getStorageSize
Get an estimated storage space used to store transaction records that will return by this iterator- Throws:
IOException
-