/** Create a B+Tree by BlockSize */ public static BPlusTree createBPTreeByBlockSize(ComponentId cid, FileSet fileset, int blockSize, int readCacheSize, int writeCacheSize, RecordFactory factory) { return createBPTree(cid, fileset, -1, blockSize, readCacheSize, writeCacheSize, factory) ; }
/** Create a B+Tree by Order */ public static BPlusTree createBPTreeByOrder(ComponentId cid, FileSet fileset, int order, RecordFactory factory) { return createBPTree(cid, fileset, order, -1, SystemIndex.BlockReadCacheSize, SystemIndex.BlockWriteCacheSize, factory) ; }
/** Create a B+Tree by Order */ public static BPlusTree createBPTreeByOrder(ComponentId cid, FileSet fileset, int order, int readCacheSize, int writeCacheSize, RecordFactory factory) { return createBPTree(cid, fileset, order, -1, readCacheSize, writeCacheSize, factory) ; }
/** Create a B+Tree by Order */ public static BPlusTree createBPTreeByOrder(ComponentId cid, FileSet fileset, int order, RecordFactory factory) { return createBPTree(cid, fileset, order, -1, SystemIndex.BlockReadCacheSize, SystemIndex.BlockWriteCacheSize, factory) ; }
/** Create a B+Tree by Order */ public static BPlusTree createBPTreeByOrder(ComponentId cid, FileSet fileset, int order, int readCacheSize, int writeCacheSize, RecordFactory factory) { return createBPTree(cid, fileset, order, -1, readCacheSize, writeCacheSize, factory) ; }
/** Create a B+Tree by BlockSize */ public static BPlusTree createBPTreeByBlockSize(ComponentId cid, FileSet fileset, int blockSize, int readCacheSize, int writeCacheSize, RecordFactory factory) { return createBPTree(cid, fileset, -1, blockSize, readCacheSize, writeCacheSize, factory) ; }
@Override public RangeIndex buildRangeIndex(RecordFactory recordFactory, String name) { ComponentId cid = componentIdMgr.getComponentId(name); FileSet fs = new FileSet(location, name); BPlusTree bpt = BPlusTreeFactory.createBPTree(cid, fs, recordFactory); txnCoord.add(bpt); return bpt; }
public static RangeIndex makeBPlusTree(ComponentId cid, FileSet fs, int blkSize, int readCacheSize, int writeCacheSize, int dftKeyLength, int dftValueLength) { RecordFactory recordFactory = makeRecordFactory(dftKeyLength, dftValueLength) ; int order = BPlusTreeParams.calcOrder(blkSize, recordFactory.recordLength()) ; RangeIndex rIndex = createBPTree(cid, fs, order, blkSize, readCacheSize, writeCacheSize, recordFactory) ; return rIndex ; }
public static RangeIndex makeBPlusTree(ComponentId cid, FileSet fs, int blkSize, int readCacheSize, int writeCacheSize, int dftKeyLength, int dftValueLength) { RecordFactory recordFactory = makeRecordFactory(dftKeyLength, dftValueLength) ; int order = BPlusTreeParams.calcOrder(blkSize, recordFactory.recordLength()) ; RangeIndex rIndex = createBPTree(cid, fs, order, blkSize, readCacheSize, writeCacheSize, recordFactory) ; return rIndex ; }