Search in sources :

Example 1 with NodeTupleTableConcrete

use of org.apache.jena.tdb2.store.nodetupletable.NodeTupleTableConcrete in project jena by apache.

the class TDB2StorageBuilder method buildPrefixTable.

private StoragePrefixesTDB buildPrefixTable(NodeTable prefixNodes) {
    String primary = params.getPrimaryIndexPrefix();
    String[] indexes = params.getPrefixIndexes();
    TupleIndex[] prefixIndexes = makeTupleIndexes(primary, indexes);
    if (prefixIndexes.length != 1)
        error(log, "Wrong number of triple table tuples indexes: " + prefixIndexes.length);
    // No cache - the prefix mapping is a cache
    // NodeTable prefixNodes = makeNodeTable(location, pnNode2Id, pnId2Node, -1, -1, -1);
    NodeTupleTable prefixTable = new NodeTupleTableConcrete(primary.length(), prefixIndexes, prefixNodes);
    StoragePrefixesTDB x = new StoragePrefixesTDB(txnSystem, prefixTable);
    // DatasetPrefixesTDB prefixes = new DatasetPrefixesTDB(prefixTable);
    log.debug("Prefixes: " + primary + " :: " + String.join(",", indexes));
    return x;
}
Also used : NodeTupleTable(org.apache.jena.tdb2.store.nodetupletable.NodeTupleTable) NodeTupleTableConcrete(org.apache.jena.tdb2.store.nodetupletable.NodeTupleTableConcrete) TupleIndex(org.apache.jena.tdb2.store.tupletable.TupleIndex)

Aggregations

NodeTupleTable (org.apache.jena.tdb2.store.nodetupletable.NodeTupleTable)1 NodeTupleTableConcrete (org.apache.jena.tdb2.store.nodetupletable.NodeTupleTableConcrete)1 TupleIndex (org.apache.jena.tdb2.store.tupletable.TupleIndex)1