Package net.sf.joafip.btreeplus.entity

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


  public void testAppendPageRecordable() throws HeapException {
    btreePlusElementMgr.openTransaction();
    final LeafPage leafPage = new LeafPage(1, true);
    leafPage.setEntry(0, 0, new DataRecordIdentifier());
    leafPage.updateByteSize();
    IPageRecordable pageRecordable = leafPage;
    assertNull(MUST_BE_NOT_STORED, pageRecordable.getPageRecord());
    btreePlusElementMgr.appendPageRecordable(pageRecordable);
    pageRecordable.setValueIsChangedValueToSave();
    IPageRecord pageRecord = pageRecordable.getPageRecord();
View Full Code Here


  }

  private IPageRecordable newLeafPage() throws HeapException {
    final LeafPage pageRecordable = new LeafPage(1, true);
    pageRecordable.setEntry(0, 0, new DataRecordIdentifier());
    pageRecordable.updateByteSize();
    return pageRecordable;
  }

  public void testDataBlock() throws HeapException {
    TestDataBlockContext[] contextByBits = new TestDataBlockContext[PageConstant.NUMBER_OF_BLOCK_TYPE];
View Full Code Here

    appendPageRecordable(leafPage);
    // leafPage.setDataBlock(0, dataBlock);
    leafPage.setEntry(0, dataBlock.getPositionInFile(),
        dataRecordIdentifier);
    leafPage.setNext(-1L);
    leafPage.updateByteSize();
    leafPage.setValueIsChangedValueToSave();
    final long firstLeafPagePosition = leafPage.getPositionInFile();
    header.setRootPagePosition(firstLeafPagePosition);
    header.setFirstLeafPagePosition(firstLeafPagePosition);
  }
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.