use of org.apache.jena.tdb.index.Index in project jena by apache.
the class IndexTestLib method testInsert.
public static Index testInsert(IndexMaker maker, int[] keys) {
Index index = maker.makeIndex();
testInsert(index, keys);
return index;
}
use of org.apache.jena.tdb.index.Index in project jena by apache.
the class DebugTDB method dumpNodeIndex.
// public static RangeIndex makeRangeIndex(Location location, String indexName,
// int dftKeyLength, int dftValueLength,
// int readCacheSize,int writeCacheSize)
public static void dumpNodeIndex(String dir) {
Location location = Location.create(dir);
Index nodeToId = SetupTDB.makeIndex(location, Names.indexNode2Id, SystemTDB.BlockSize, SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId, -1, -1);
for (Record aNodeToId : nodeToId) {
System.out.println(aNodeToId);
}
}
use of org.apache.jena.tdb.index.Index in project jena by apache.
the class IndexTestLib method buildIndex.
// ---------- Utilities
// public static RangeIndex buildRangeIndex(RangeIndexMaker maker, int[] keys)
// {
// RangeIndex index = maker.make() ;
// IndexTestLib.add(index, keys) ;
// return index ;
// }
public static Index buildIndex(IndexMaker maker, int[] keys) {
Index index = maker.makeIndex();
IndexTestLib.add(index, keys);
return index;
}
use of org.apache.jena.tdb.index.Index in project jena by apache.
the class AbstractTestNodeTableTrans method create.
private NodeTableTrans create(Transaction txn, NodeTable base) {
RecordFactory recordFactory = new RecordFactory(SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId);
Index idx = new IndexMap(recordFactory);
ObjectFile objectFile = createObjectFile();
NodeTableTrans ntt = new NodeTableTrans(txn, "test", base, idx, objectFile);
return ntt;
}
use of org.apache.jena.tdb.index.Index in project jena by apache.
the class DatasetBuilderStd method buildNodeTable.
// -------------
private NodeTable buildNodeTable(FileSet fsIndex, FileSet fsObjectFile, StoreParams params) {
RecordFactory recordFactory = new RecordFactory(SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId);
Index idx = /*indexBuilder.*/
buildIndex(fsIndex, recordFactory, params);
ObjectFile objectFile = objectFileBuilder.buildObjectFile(fsObjectFile, Names.extNodeData);
NodeTable nodeTable = new NodeTableNative(idx, objectFile);
nodeTable = NodeTableCache.create(nodeTable, params.getNode2NodeIdCacheSize(), params.getNodeId2NodeCacheSize(), params.getNodeMissCacheSize());
nodeTable = NodeTableInline.create(nodeTable);
return nodeTable;
}
Aggregations