Package org.chaidb.db.log.logrecord

Examples of org.chaidb.db.log.logrecord.BTreeFreeOverflowPageLogRecord.log()


                if (needLog) {
                    int pgno = overflowPage.pageNumber.getPageNumber();
                    short upBound = overflowPage.upperBound;
                    short lowBound = (short) BTreeSpec.PAGE_HEADER_SIZE;
                    BTreeFreeOverflowPageLogRecord lr = new BTreeFreeOverflowPageLogRecord(overflowPage.getPageNumber().getTreeId(), pgno, txnId, ByteTool.copyByteArray(overflowPage.page, 0, lowBound), ByteTool.copyByteArray(overflowPage.page, upBound, BTreeSpec.PAGE_SIZE - upBound), overflowPage.btreeSpec.btree.getType());
                    lr.log();
                }
                /***************************/

                page.buffer.addToFreeList(pageNumber.getTreeId(), overflowPage.pageNumber, needLog ? new Integer(txnId) : null);

View Full Code Here


                    if (needLog) {
                        int pgno = overflowPage.pageNumber.getPageNumber();
                        short upBound = overflowPage.upperBound;
                        short lowBound = (short) BTreeSpec.PAGE_HEADER_SIZE;
                        BTreeFreeOverflowPageLogRecord lr = new BTreeFreeOverflowPageLogRecord(overflowPage.getPageNumber().getTreeId(), pgno, txnId, ByteTool.copyByteArray(overflowPage.page, 0, lowBound), ByteTool.copyByteArray(overflowPage.page, upBound, BTreeSpec.PAGE_SIZE - upBound), overflowPage.btreeSpec.btree.getType());
                        lr.log();
                    }
                    /***************************/
                    page.buffer.addToFreeList(pageNumber.getTreeId(), overflowPage.pageNumber, needLog ? new Integer(txnId) : null);
                }
            }
View Full Code Here

            int pgno = recycledPage.pageNumber.getPageNumber();
            short upBound = recycledPage.upperBound;
            //overflowpage: record the header.
            short lowBound = recycledPage.isOverflow() ? (short) BTreeSpec.PAGE_HEADER_SIZE : recycledPage.lowerBound;
            BTreeFreeOverflowPageLogRecord lr = new BTreeFreeOverflowPageLogRecord(id, pgno, txnId, ByteTool.copyByteArray(recycledPage.page, 0, lowBound), ByteTool.copyByteArray(recycledPage.page, upBound, BTreeSpec.PAGE_SIZE - upBound), btreeSpec.btree.getType());
            lr.log();
        }
        /***************************/
        getBuffer().addToFreeList(id, recycledPage.pageNumber, needLog ? new Integer(txnId) : null);
    }

View Full Code Here

            int pgno = overflowPage.pageNumber.getPageNumber();
            short upBound = overflowPage.upperBound;
            short lowBound = (short) BTreeSpec.PAGE_HEADER_SIZE;
            BTreeFreeOverflowPageLogRecord lr = new BTreeFreeOverflowPageLogRecord(pageNumber.getTreeId(), pgno, txnId, ByteTool.copyByteArray(overflowPage.page, 0, lowBound), ByteTool.copyByteArray(overflowPage.page, upBound, BTreeSpec.PAGE_SIZE - upBound), btreeSpec.btree.getType());

            lr.log();
        }
        /* end:added by marriane 2001-9-29 for logging free overflow page log record */

        buffer.addToFreeList(btreeSpec.btree.getBtreeId(), overflowPage.pageNumber, needLog ? new Integer(txnId) : null);

View Full Code Here

                int pgno = overflowPage.pageNumber.getPageNumber();
                short upBound = overflowPage.upperBound;
                short lowBound = (short) BTreeSpec.PAGE_HEADER_SIZE;
                BTreeFreeOverflowPageLogRecord lr = new BTreeFreeOverflowPageLogRecord(pageNumber.getTreeId(), pgno, txnId, ByteTool.copyByteArray(overflowPage.page, 0, lowBound), ByteTool.copyByteArray(overflowPage.page, upBound, BTreeSpec.PAGE_SIZE - upBound), btreeSpec.btree.getType());

                lr.log();
            }
            /* end:added by marriane 2001-9-29 for logging free overflow page log record */

            //v.add(overflowPage.pageNumber);
            buffer.addToFreeList(btreeSpec.btree.getBtreeId(), overflowPage.pageNumber, needLog ? new Integer(txnId) : null);
View Full Code Here

                    int pgno = overflowPage.pageNumber.getPageNumber();
                    short upBound = overflowPage.upperBound;
                    short lowBound = (short) BTreeSpec.PAGE_HEADER_SIZE;
                    BTreeFreeOverflowPageLogRecord lr = new BTreeFreeOverflowPageLogRecord(pageNumber.getTreeId(), pgno, txnId, ByteTool.copyByteArray(overflowPage.page, 0, lowBound), ByteTool.copyByteArray(overflowPage.page, upBound, BTreeSpec.PAGE_SIZE - upBound), btreeSpec.btree.getType());

                    lr.log();
                }
                /* end:added by marriane 2001-9-29 for logging free overflow page log record */
                buffer.addToFreeList(btreeSpec.btree.getBtreeId(), overflowPage.pageNumber, needLog ? new Integer(txnId) : null);

                while (overflowPage.nextPage.getPageNumber() > 0) {
View Full Code Here

                    if (needLog) {
                        int pgno = overflowPage.pageNumber.getPageNumber();
                        short upBound = overflowPage.upperBound;
                        short lowBound = (short) BTreeSpec.PAGE_HEADER_SIZE;
                        BTreeFreeOverflowPageLogRecord lr = new BTreeFreeOverflowPageLogRecord(pageNumber.getTreeId(), pgno, txnId, ByteTool.copyByteArray(overflowPage.page, 0, lowBound), ByteTool.copyByteArray(overflowPage.page, upBound, BTreeSpec.PAGE_SIZE - upBound), btreeSpec.btree.getType());
                        lr.log();

                    }
                    /* end:added by marriane 2001-9-29 for logging free overflow page log record */

                    buffer.addToFreeList(btreeSpec.btree.getBtreeId(), overflowPage.pageNumber, needLog ? new Integer(txnId) : null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.