Class BPlusTreeFactory


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static BPlusTree addLogging​(BPlusTree bpTree)
      Debugging
      static BPlusTree addTracking​(BPlusTree bpTree)
      Debugging
      static BPlusTree create​(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​(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​(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​(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​(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​(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 RangeIndex makeBPlusTree​(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​(java.lang.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​(java.lang.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 Detail

      • create

        public static BPlusTree create​(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 RangeIndex makeBPlusTree​(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​(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​(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​(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​(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​(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​(java.lang.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​(java.lang.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