Package net.sf.joafip.btreeplus.entity

Examples of net.sf.joafip.btreeplus.entity.IPageRecordable.updateByteSize()


        btreePlusElementMgr.getLastRecordPositionInFile());

    NonTerminalPage nonTerminalPage = new NonTerminalPage(1, true);
    nonTerminalPage.setKey(0, new DataRecordIdentifier());
    pageRecordable = nonTerminalPage;
    pageRecordable.updateByteSize();
    assertNull(MUST_BE_NOT_STORED, pageRecordable.getPageRecord());
    btreePlusElementMgr.appendPageRecordable(pageRecordable);
    pageRecordable.setValueIsChangedValueToSave();
    pageRecord = pageRecordable.getPageRecord();
    assertNotNull(MUST_BE_STORED, pageRecord);
View Full Code Here


  public void testFreePage() throws HeapException {
    btreePlusElementMgr.openTransaction();
    assertEquals("must not has free page", -1, getHeapHeader()
        .getPageNumberOfFirstFreePage());
    IPageRecordable pageRecordable = newLeafPage();
    pageRecordable.updateByteSize();
    btreePlusElementMgr.appendPageRecordable(pageRecordable);
    pageRecordable.setValueIsChangedValueToSave();
    pageRecordable = newLeafPage();
    pageRecordable.updateByteSize();
    btreePlusElementMgr.appendPageRecordable(pageRecordable);
View Full Code Here

    IPageRecordable pageRecordable = newLeafPage();
    pageRecordable.updateByteSize();
    btreePlusElementMgr.appendPageRecordable(pageRecordable);
    pageRecordable.setValueIsChangedValueToSave();
    pageRecordable = newLeafPage();
    pageRecordable.updateByteSize();
    btreePlusElementMgr.appendPageRecordable(pageRecordable);
    pageRecordable.setValueIsChangedValueToSave();
    final long pageNumber = pageRecordable.getPageRecord().getPageNumber();
    pageRecordable = newLeafPage();
    pageRecordable.updateByteSize();
View Full Code Here

    pageRecordable.updateByteSize();
    btreePlusElementMgr.appendPageRecordable(pageRecordable);
    pageRecordable.setValueIsChangedValueToSave();
    final long pageNumber = pageRecordable.getPageRecord().getPageNumber();
    pageRecordable = newLeafPage();
    pageRecordable.updateByteSize();
    btreePlusElementMgr.appendPageRecordable(pageRecordable);
    pageRecordable.setValueIsChangedValueToSave();
    btreePlusElementMgr.closeTransaction();

    btreePlusElementMgr.openTransaction();
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.