Search in sources :

Example 1 with StageGeneratorDirectTDB

use of org.apache.jena.tdb.solver.StageGeneratorDirectTDB in project jena by apache.

the class TDB method wireIntoExecution.

private static void wireIntoExecution() {
    // Globally change the stage generator to intercept BGP on TDB
    Context cxt = ARQ.getContext();
    StageGenerator orig = StageBuilder.chooseStageGenerator(cxt);
    // Wire in the TDB stage generator which will make TDB work whether
    // or not the TDB executor is used. This means that datasets of mixed
    // graph types inside a general purpose dataset work.
    StageGenerator stageGenerator = new StageGeneratorDirectTDB(orig);
    StageBuilder.setGenerator(ARQ.getContext(), stageGenerator);
}
Also used : Context(org.apache.jena.sparql.util.Context) StageGenerator(org.apache.jena.sparql.engine.main.StageGenerator) StageGeneratorDirectTDB(org.apache.jena.tdb.solver.StageGeneratorDirectTDB)

Aggregations

StageGenerator (org.apache.jena.sparql.engine.main.StageGenerator)1 Context (org.apache.jena.sparql.util.Context)1 StageGeneratorDirectTDB (org.apache.jena.tdb.solver.StageGeneratorDirectTDB)1