java.lang.Object
org.apache.jena.dboe.transaction.txn.StateMgrBase
org.apache.jena.dboe.transaction.txn.StateMgrData
org.apache.jena.dboe.trans.bplustree.BPTStateMgr
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync

public class BPTStateMgr extends org.apache.jena.dboe.transaction.txn.StateMgrData
Manage the persistent state of the tree This consists of last committed root, and the limits on the blocks for both nodes and records. (rootId/int-as-long, nodeAllocLimit/long, recordsAllocLimit/long)
  • Constructor Summary

    Constructors
    Constructor
    Description
    BPTStateMgr(org.apache.jena.dboe.base.file.BufferChannel storage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
     
    int
     
    void
    setState(int rootIdx, long nodeBlkLimit, long recordsBlkLimit)
    Set the state - does not write it to disk.

    Methods inherited from class org.apache.jena.dboe.transaction.txn.StateMgrBase

    close, getBufferChannel, getState, readState, setState, sync, writeState

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BPTStateMgr

      public BPTStateMgr(org.apache.jena.dboe.base.file.BufferChannel storage)
  • Method Details

    • setState

      public void setState(int rootIdx, long nodeBlkLimit, long recordsBlkLimit)
      Set the state - does not write it to disk.
    • getRoot

      public int getRoot()
    • getNodeBlocksLimit

      public long getNodeBlocksLimit()
    • getRecordsBlocksLimit

      public long getRecordsBlocksLimit()