java.lang.Object
org.apache.jena.dboe.trans.bplustree.BPlusTreeFactory

public class BPlusTreeFactory extends Object
Make BPlusTrees - this code works in close association with the BPlusTree constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    static BPlusTree
    Debugging
    static BPlusTree
    Debugging
    static BPlusTree
    create(org.apache.jena.dboe.transaction.txn.ComponentId id, BPlusTreeParams params, org.apache.jena.dboe.base.file.BufferChannel chan, org.apache.jena.dboe.base.block.BlockMgr blkMgrNodes, org.apache.jena.dboe.base.block.BlockMgr blkMgrLeaves)
    Create the java structures to correspond to the supplied block managers for the persistent storage.
    static BPlusTree
    createBPTree(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fileset, int order, int blockSize, int readCacheSize, int writeCacheSize, org.apache.jena.dboe.base.record.RecordFactory factory)
    Knowing all the parameters, create a B+Tree
    static BPlusTree
    createBPTree(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fileset, org.apache.jena.dboe.base.record.RecordFactory factory)
    Create a B+Tree using defaults
    static BPlusTree
    createBPTreeByBlockSize(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fileset, int blockSize, int readCacheSize, int writeCacheSize, org.apache.jena.dboe.base.record.RecordFactory factory)
    Create a B+Tree by BlockSize
    static BPlusTree
    createBPTreeByOrder(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fileset, int order, int readCacheSize, int writeCacheSize, org.apache.jena.dboe.base.record.RecordFactory factory)
    Create a B+Tree by Order
    static BPlusTree
    createBPTreeByOrder(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fileset, int order, org.apache.jena.dboe.base.record.RecordFactory factory)
    Create a B+Tree by Order
    static BPlusTree
    createNonTxn(BPlusTreeParams params, org.apache.jena.dboe.base.file.BufferChannel chan, org.apache.jena.dboe.base.block.BlockMgr blkMgrNodes, org.apache.jena.dboe.base.block.BlockMgr blkMgrLeaves)
    Create the java structures to correspond to the supplied block managers for the persistent storage.
    static org.apache.jena.dboe.index.RangeIndex
    makeBPlusTree(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fs, int blkSize, int readCacheSize, int writeCacheSize, int dftKeyLength, int dftValueLength)
     
    static BPlusTree
    makeMem(int order, int keyLength, int valueLength)
    (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers
    static BPlusTree
    makeMem(int order, int minDataRecords, int keyLength, int valueLength)
    (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers
    static BPlusTree
    makeMem(String name, int order, int keyLength, int valueLength)
    (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers
    static BPlusTree
    makeMem(String name, int order, int minDataRecords, int keyLength, int valueLength)
    (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers
    static org.apache.jena.dboe.base.record.RecordFactory
    makeRecordFactory(int keyLen, int valueLen)
     
    static BPlusTree
    rebuild(BPlusTree bpt, org.apache.jena.dboe.base.file.BufferChannel chan, org.apache.jena.dboe.base.block.BlockMgr blkMgrNodes, org.apache.jena.dboe.base.block.BlockMgr blkMgrLeaves)
    Reset an existing B+Tree with different storage units.

    Methods inherited from class java.lang.Object

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

    • create

      public static BPlusTree create(org.apache.jena.dboe.transaction.txn.ComponentId id, BPlusTreeParams params, org.apache.jena.dboe.base.file.BufferChannel chan, org.apache.jena.dboe.base.block.BlockMgr blkMgrNodes, org.apache.jena.dboe.base.block.BlockMgr blkMgrLeaves)
      Create the java structures to correspond to the supplied block managers for the persistent storage. Initialize the persistent storage to the empty B+Tree if it does not exist. This is primitive operation that underpins creation of a sB+Tree.
    • createNonTxn

      public static BPlusTree createNonTxn(BPlusTreeParams params, org.apache.jena.dboe.base.file.BufferChannel chan, org.apache.jena.dboe.base.block.BlockMgr blkMgrNodes, org.apache.jena.dboe.base.block.BlockMgr blkMgrLeaves)
      Create the java structures to correspond to the supplied block managers for the persistent storage. Initialize the persistent storage to the empty B+Tree if it does not exist.
    • rebuild

      public static BPlusTree rebuild(BPlusTree bpt, org.apache.jena.dboe.base.file.BufferChannel chan, org.apache.jena.dboe.base.block.BlockMgr blkMgrNodes, org.apache.jena.dboe.base.block.BlockMgr blkMgrLeaves)
      Reset an existing B+Tree with different storage units. For each, null means "use same as original"
    • makeBPlusTree

      public static org.apache.jena.dboe.index.RangeIndex makeBPlusTree(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fs, int blkSize, int readCacheSize, int writeCacheSize, int dftKeyLength, int dftValueLength)
    • makeRecordFactory

      public static org.apache.jena.dboe.base.record.RecordFactory makeRecordFactory(int keyLen, int valueLen)
    • createBPTree

      public static BPlusTree createBPTree(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fileset, org.apache.jena.dboe.base.record.RecordFactory factory)
      Create a B+Tree using defaults
    • createBPTreeByBlockSize

      public static BPlusTree createBPTreeByBlockSize(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fileset, int blockSize, int readCacheSize, int writeCacheSize, org.apache.jena.dboe.base.record.RecordFactory factory)
      Create a B+Tree by BlockSize
    • createBPTreeByOrder

      public static BPlusTree createBPTreeByOrder(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fileset, int order, int readCacheSize, int writeCacheSize, org.apache.jena.dboe.base.record.RecordFactory factory)
      Create a B+Tree by Order
    • createBPTreeByOrder

      public static BPlusTree createBPTreeByOrder(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fileset, int order, org.apache.jena.dboe.base.record.RecordFactory factory)
      Create a B+Tree by Order
    • createBPTree

      public static BPlusTree createBPTree(org.apache.jena.dboe.transaction.txn.ComponentId cid, org.apache.jena.dboe.base.file.FileSet fileset, int order, int blockSize, int readCacheSize, int writeCacheSize, org.apache.jena.dboe.base.record.RecordFactory factory)
      Knowing all the parameters, create a B+Tree
    • makeMem

      public static BPlusTree makeMem(int order, int keyLength, int valueLength)
      (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers
    • makeMem

      public static BPlusTree makeMem(String name, int order, int keyLength, int valueLength)
      (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers
    • makeMem

      public static BPlusTree makeMem(int order, int minDataRecords, int keyLength, int valueLength)
      (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers
    • makeMem

      public static BPlusTree makeMem(String name, int order, int minDataRecords, int keyLength, int valueLength)
      (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers
    • addTracking

      public static BPlusTree addTracking(BPlusTree bpTree)
      Debugging
    • addLogging

      public static BPlusTree addLogging(BPlusTree bpTree)
      Debugging