Package net.sf.joafip.btreeplus.entity

Examples of net.sf.joafip.btreeplus.entity.LeafPage


  private void computeNext() {
    try {
      if (nextPosition == -1L) {
        next = null;// NOPMD
      } else {
        final LeafPage leafPage = (LeafPage) btreePlusElementMgr
            .getPage(nextPosition, null, -1);
        next = leafPage.getKey(nextIndex++);
        if (nextIndex == leafPage.getNumberOfKeyEntries()) {
          nextPosition = leafPage.getNext();
          nextIndex = 0;
        }
      }
    } catch (Exception exception) {
      throw new IllegalStateException("computing next", exception);
View Full Code Here


  }

  public void newRootLeafPage(
      final DataRecordIdentifier dataRecordIdentifier,
      final IDataBlock dataBlock) throws HeapException {
    final LeafPage leafPage = new LeafPage(1, longKey);
    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

Related Classes of net.sf.joafip.btreeplus.entity.LeafPage

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.