Class FileTxnLog.FileTxnIterator

    • Constructor Detail

      • FileTxnIterator

        public FileTxnIterator​(File logDir,
                               long zxid,
                               boolean fastForward)
                        throws IOException
        create an iterator over a transaction database directory
        Parameters:
        logDir - the transaction database directory
        zxid - the zxid to start reading from
        fastForward - true if the iterator should be fast forwarded to point to the txn of a given zxid, else the iterator will point to the starting txn of a txnlog that may contain txn of a given zxid
        Throws:
        IOException
      • FileTxnIterator

        public FileTxnIterator​(File logDir,
                               long zxid)
                        throws IOException
        create an iterator over a transaction database directory
        Parameters:
        logDir - the transaction database directory
        zxid - the zxid to start reading from
        Throws:
        IOException