Search in sources :

Example 1 with NodeTupleTableConcrete

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

the class DatasetBuilderStd method makePrefixTable.

protected DatasetPrefixesTDB makePrefixTable(Location location, DatasetControl policy, StoreParams params) {
    String primary = params.getPrimaryIndexPrefix();
    String[] indexes = params.getPrefixIndexes();
    TupleIndex[] prefixIndexes = makeTupleIndexes(location, primary, indexes, new String[] { params.getIndexPrefix() }, params);
    if (prefixIndexes.length != 1)
        error(log, "Wrong number of triple table tuples indexes: " + prefixIndexes.length);
    String pnNode2Id = params.getPrefixNode2Id();
    String pnId2Node = params.getPrefixId2Node();
    // No cache - the prefix mapping is a cache
    NodeTable prefixNodes = makeNodeTableNoCache(location, pnNode2Id, pnId2Node, params);
    NodeTupleTable prefixTable = new NodeTupleTableConcrete(primary.length(), prefixIndexes, prefixNodes, policy);
    DatasetPrefixesTDB prefixes = new DatasetPrefixesTDB(prefixTable);
    log.debug("Prefixes: " + primary + " :: " + String.join(",", indexes));
    return prefixes;
}
Also used : NodeTupleTable(org.apache.jena.tdb.store.nodetupletable.NodeTupleTable) NodeTupleTableConcrete(org.apache.jena.tdb.store.nodetupletable.NodeTupleTableConcrete) TupleIndex(org.apache.jena.tdb.store.tupletable.TupleIndex) NodeTable(org.apache.jena.tdb.store.nodetable.NodeTable)

Aggregations

NodeTable (org.apache.jena.tdb.store.nodetable.NodeTable)1 NodeTupleTable (org.apache.jena.tdb.store.nodetupletable.NodeTupleTable)1 NodeTupleTableConcrete (org.apache.jena.tdb.store.nodetupletable.NodeTupleTableConcrete)1 TupleIndex (org.apache.jena.tdb.store.tupletable.TupleIndex)1