Class BPlusTreeFactory
java.lang.Object
org.apache.jena.dboe.trans.bplustree.BPlusTreeFactory
Make BPlusTrees - this code works in close association with the BPlusTree constructor
-
Method Summary
Modifier and TypeMethodDescriptionstatic BPlusTreeaddLogging(BPlusTree bpTree) Debuggingstatic BPlusTreeaddTracking(BPlusTree bpTree) Debuggingstatic BPlusTreecreate(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 BPlusTreecreateBPTree(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+Treestatic BPlusTreecreateBPTree(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 defaultsstatic BPlusTreecreateBPTreeByBlockSize(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 BlockSizestatic BPlusTreecreateBPTreeByOrder(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 Orderstatic BPlusTreecreateBPTreeByOrder(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 Orderstatic BPlusTreecreateNonTxn(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.RangeIndexmakeBPlusTree(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 BPlusTreemakeMem(int order, int keyLength, int valueLength) (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managersstatic BPlusTreemakeMem(int order, int minDataRecords, int keyLength, int valueLength) (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managersstatic BPlusTree(Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managersstatic BPlusTree(Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managersstatic org.apache.jena.dboe.base.record.RecordFactorymakeRecordFactory(int keyLen, int valueLen) static BPlusTreerebuild(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.
-
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
(Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers -
makeMem
(Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers -
makeMem
(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
Debugging -
addLogging
Debugging
-