Class BPlusTreeFactory
- java.lang.Object
-
- org.apache.jena.dboe.trans.bplustree.BPlusTreeFactory
-
public class BPlusTreeFactory extends java.lang.ObjectMake 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 BPlusTreeaddLogging(BPlusTree bpTree)Debuggingstatic BPlusTreeaddTracking(BPlusTree bpTree)Debuggingstatic BPlusTreecreate(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(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(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(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(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(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 RangeIndexmakeBPlusTree(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 BPlusTreemakeMem(java.lang.String name, int order, int keyLength, int valueLength)(Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managersstatic BPlusTreemakeMem(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 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 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
-
-