Package org.chaidb.db.log

Examples of org.chaidb.db.log.Lsn


     */
    public Lsn getLastLsnOfChildTxn() {
        if (lastLsnOfChildTxn == null) {
            return null;
        }
        return new Lsn(lastLsnOfChildTxn);
    }
View Full Code Here


     * user interface to add a log record and put it to buffer pool
     */
    public Lsn log() throws ChaiDBException {
        super.log();
        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = logMgr.put(this, LogManager.LOG_CHILD_FLUSH);

        return newLsn;
    }
View Full Code Here

    private final String filename; //name of current file
    private final Lsn firstLsn;

    public TxnQueue(Integer txnId, Lsn firstLsn, String path) {
        this.txnId = txnId;
        this.firstLsn = new Lsn(firstLsn);
        this.path = path;
        filename = path + File.separator + "txn_" + Integer.toHexString(txnId.intValue());
    }
View Full Code Here

TOP

Related Classes of org.chaidb.db.log.Lsn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.