Search in sources :

Example 1 with TupleIndexRecord

use of org.apache.jena.tdb2.store.tupletable.TupleIndexRecord in project jena by apache.

the class LoaderOps method idxBTree.

/**
 * Get the BPlusTree index for a {@Link TupleIndex}
 */
public static BPlusTree idxBTree(TupleIndex idx) {
    TupleIndexRecord idxr = (TupleIndexRecord) idx;
    RangeIndex rIndex = idxr.getRangeIndex();
    BPlusTree bpt = (BPlusTree) rIndex;
    return bpt;
}
Also used : TupleIndexRecord(org.apache.jena.tdb2.store.tupletable.TupleIndexRecord) RangeIndex(org.apache.jena.dboe.index.RangeIndex) BPlusTree(org.apache.jena.dboe.trans.bplustree.BPlusTree)

Example 2 with TupleIndexRecord

use of org.apache.jena.tdb2.store.tupletable.TupleIndexRecord in project jena by apache.

the class TDB2StorageBuilder method makeTupleIndex.

private TupleIndex makeTupleIndex(String primary, String index, String name) {
    TupleMap cmap = TupleMap.create(primary, index);
    RecordFactory rf = new RecordFactory(SystemTDB.SizeOfNodeId * cmap.length(), 0);
    RangeIndex rIdx = makeRangeIndex(rf, index);
    TupleIndex tIdx = new TupleIndexRecord(primary.length(), cmap, index, rf, rIdx);
    return tIdx;
}
Also used : RecordFactory(org.apache.jena.dboe.base.record.RecordFactory) TupleIndexRecord(org.apache.jena.tdb2.store.tupletable.TupleIndexRecord) RangeIndex(org.apache.jena.dboe.index.RangeIndex) TupleIndex(org.apache.jena.tdb2.store.tupletable.TupleIndex) TupleMap(org.apache.jena.atlas.lib.tuple.TupleMap)

Aggregations

RangeIndex (org.apache.jena.dboe.index.RangeIndex)2 TupleIndexRecord (org.apache.jena.tdb2.store.tupletable.TupleIndexRecord)2 TupleMap (org.apache.jena.atlas.lib.tuple.TupleMap)1 RecordFactory (org.apache.jena.dboe.base.record.RecordFactory)1 BPlusTree (org.apache.jena.dboe.trans.bplustree.BPlusTree)1 TupleIndex (org.apache.jena.tdb2.store.tupletable.TupleIndex)1