use of org.apache.jena.dboe.index.Index in project jena by apache.
the class TDB2StorageBuilder method buildBaseNodeTable.
private NodeTable buildBaseNodeTable(String name) {
RecordFactory recordFactory = new RecordFactory(SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId);
Index index = makeRangeIndex(recordFactory, name);
String dataname = name + "-data";
TransBinaryDataFile transBinFile = makeBinaryDataFile(dataname);
components.add(transBinFile);
return new NodeTableTRDF(index, transBinFile);
}
use of org.apache.jena.dboe.index.Index in project jena by apache.
the class LoaderOps method ntBPTree.
/**
* Get the BPlusTree index for a {@Link NodeTable}
*/
public static BPlusTree ntBPTree(NodeTable nt) {
NodeTableTRDF ntt = (NodeTableTRDF) (nt.baseNodeTable());
Index idx = ntt.getIndex();
return (BPlusTree) idx;
}
Aggregations