Interface TxnLog.TxnIterator
- 
- All Superinterfaces:
- AutoCloseable,- Closeable
 - All Known Implementing Classes:
- FileTxnLog.FileTxnIterator
 - Enclosing interface:
- TxnLog
 
 public static interface TxnLog.TxnIterator extends Closeable an iterating interface for reading transaction logs.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()close files and release the resourcesTxnDigestgetDigest()TxnHeadergetHeader()return the transaction header.longgetStorageSize()Get an estimated storage space used to store transaction records that will return by this iteratorRecordgetTxn()return the transaction record.booleannext()go to the next transaction record.
 
- 
- 
- 
Method Detail- 
getHeaderTxnHeader getHeader() return the transaction header.- Returns:
- return the transaction header.
 
 - 
getTxnRecord getTxn() return the transaction record.- Returns:
- return the transaction record.
 
 - 
getDigestTxnDigest getDigest() - Returns:
- the digest associated with the transaction.
 
 - 
nextboolean next() throws IOExceptiongo to the next transaction record.- Throws:
- IOException
 
 - 
closevoid close() throws IOExceptionclose files and release the resources- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
 - 
getStorageSizelong getStorageSize() throws IOExceptionGet an estimated storage space used to store transaction records that will return by this iterator- Throws:
- IOException
 
 
- 
 
-