/** Make a node table overriding the node->id and id->node table names */ private NodeTable makeNodeTable$(Location location, String indexNode2Id, String indexId2Node, StoreParams params) { FileSet fsNodeToId = new FileSet(location, indexNode2Id) ; FileSet fsId2Node = new FileSet(location, indexId2Node) ; NodeTable nt = /*nodeTableBuilder.*/buildNodeTable(fsNodeToId, fsId2Node, params) ; return nt ; }
public static RangeIndex buildRangeIndex(Location location, String indexName, RecordFactory recordFactory, IndexParams indexParams) { FileSet fileset = new FileSet(location, indexName) ; return buildRangeIndex(fileset, recordFactory, indexParams) ; }
public static RangeIndex makeRangeIndex(Location location, String indexName, int blkSize, int dftKeyLength, int dftValueLength, int readCacheSize,int writeCacheSize) { FileSet fs = new FileSet(location, indexName) ; RangeIndex rIndex = makeBPlusTree(fs, blkSize, readCacheSize, writeCacheSize, dftKeyLength, dftValueLength) ; return rIndex ; }
/** FileSet for "in-memory" */ public static FileSet mem() { FileSet fs = new FileSet(Location.mem(), "mem" ) ; return fs ; }
public static RangeIndex buildRangeIndex(Location location, String indexName, RecordFactory recordFactory) { FileSet fileset = new FileSet(location, indexName) ; return buildRangeIndex(fileset, recordFactory) ; }
protected TupleIndex makeTupleIndex(Location location, String name, String primary, String indexOrder, StoreParams params) { // Commonly, name == indexOrder. FileSet fs = new FileSet(location, name) ; ColumnMap colMap = new ColumnMap(primary, indexOrder) ; return /*tupleIndexBuilder.*/buildTupleIndex(fs, colMap, indexOrder, params) ; }
private ObjectFile determineNodeTable(Location loc) { // Directly open the nodes.dat file. StoreParams storeParams = StoreParams.getDftStoreParams(); FileSet fsId2Node = new FileSet(loc, storeParams.getIndexId2Node()) ; String file = fsId2Node.filename(Names.extNodeData); ObjectFile objFile = FileFactory.createObjectFileDisk(file); return objFile; }
private ObjectFile determineNodeTable(Location loc) { // Directly open the nodes.dat file. StoreParams storeParams = StoreParams.getDftStoreParams(); FileSet fsId2Node = new FileSet(loc, storeParams.getIndexId2Node()) ; String file = fsId2Node.filename(Names.extNodeData); ObjectFile objFile = FileFactory.createObjectFileDisk(file); return objFile; }
public static TupleIndex makeTupleIndex(Location location, String primary, String indexOrder, String indexName, int keyLength) { FileSet fs = new FileSet(location, indexName) ; int readCacheSize = params.getBlockReadCacheSize() ; int writeCacheSize = params.getBlockWriteCacheSize() ; // Value part is null (zero length) RangeIndex rIndex = SetupIndex.makeRangeIndex(location, indexName, params.getBlockSize(), keyLength, 0, readCacheSize, writeCacheSize) ; TupleIndex tupleIndex = new TupleIndexRecord(primary.length(), new ColumnMap(primary, indexOrder), indexOrder, rIndex.getRecordFactory(), rIndex) ; return tupleIndex ; }
public static void exec(Location srcLoc, Location dstLoc, String indexName) FileSet destination = new FileSet(dstLoc, indexName) ; int readCacheSize = 0 ; int writeCacheSize = -1 ;
int blockSizeRecords = blockSize; FileSet destination = new FileSet(location, indexName);