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);
}
Aggregations