Interface TxnLog.TxnIterator
-
- All Known Implementing Classes:
FileTxnLog.FileTxnIterator
- Enclosing interface:
- TxnLog
public static interface TxnLog.TxnIteratoran iterating interface for reading transaction logs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()close files and release the resourcesTxnHeadergetHeader()return the transaction header.org.apache.jute.RecordgetTxn()return the transaction record.booleannext()go to the next transaction record.
-
-
-
Method Detail
-
getHeader
TxnHeader getHeader()
return the transaction header.- Returns:
- return the transaction header.
-
getTxn
org.apache.jute.Record getTxn()
return the transaction record.- Returns:
- return the transaction record.
-
next
boolean next() throws java.io.IOExceptiongo to the next transaction record.- Throws:
java.io.IOException
-
close
void close() throws java.io.IOExceptionclose files and release the resources- Throws:
java.io.IOException
-
-