Search in sources :

Example 6 with Index

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);
}
Also used : NodeTableTRDF(org.apache.jena.tdb2.store.nodetable.NodeTableTRDF) RecordFactory(org.apache.jena.dboe.base.record.RecordFactory) TransBinaryDataFile(org.apache.jena.dboe.trans.data.TransBinaryDataFile) RangeIndex(org.apache.jena.dboe.index.RangeIndex) TupleIndex(org.apache.jena.tdb2.store.tupletable.TupleIndex) Index(org.apache.jena.dboe.index.Index)

Example 7 with Index

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;
}
Also used : NodeTableTRDF(org.apache.jena.tdb2.store.nodetable.NodeTableTRDF) RangeIndex(org.apache.jena.dboe.index.RangeIndex) TupleIndex(org.apache.jena.tdb2.store.tupletable.TupleIndex) Index(org.apache.jena.dboe.index.Index) BPlusTree(org.apache.jena.dboe.trans.bplustree.BPlusTree)

Aggregations

Index (org.apache.jena.dboe.index.Index)7 RangeIndex (org.apache.jena.dboe.index.RangeIndex)5 NodeTableTRDF (org.apache.jena.tdb2.store.nodetable.NodeTableTRDF)3 Record (org.apache.jena.dboe.base.record.Record)2 RecordFactory (org.apache.jena.dboe.base.record.RecordFactory)2 RecordLib.intToRecord (org.apache.jena.dboe.test.RecordLib.intToRecord)2 TupleIndex (org.apache.jena.tdb2.store.tupletable.TupleIndex)2 Test (org.junit.Test)2 BPlusTree (org.apache.jena.dboe.trans.bplustree.BPlusTree)1 TransBinaryDataFile (org.apache.jena.dboe.trans.data.TransBinaryDataFile)1 NodeTable (org.apache.jena.tdb2.store.nodetable.NodeTable)1