Class StageBuilder
- java.lang.Object
-
- org.apache.jena.sparql.engine.main.StageBuilder
-
public class StageBuilder extends java.lang.ObjectThe stage builder (there is only one) is a library that encapsulates evaluation of a basic graph pattern (BGP). Matching BGPs is an extension point of SPARQL; different entailment regimes plug in at this point. They are also an extension point in ARQ to connect to any datasource, the most common case being connecting to a Jena graph. The StageBuilder finds the registered StageGenerator, and calls it to evaluate a basic graph pattern that has any bound variables replaced by their value (in effect, an index join). Extension happens by registering a different StageGenerator in the context object for the execution. Setting the StageGenerator in the global context (ARQ) makes it available to all query execution created after the point of setting. Helper static methods for setting the stage generator are provided.
-
-
Field Summary
Fields Modifier and Type Field Description static StageGeneratorexecuteInlineThe plain StageGenerator, no reordering
-
Constructor Summary
Constructors Constructor Description StageBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StageGeneratorchooseStageGenerator(Context context)static StageGeneratorgetGenerator()static StageGeneratorgetGenerator(Context context)static voidsetGenerator(Context context, StageGenerator stageGenerator)static StageGeneratorstandardGenerator()
-
-
-
Field Detail
-
executeInline
public static StageGenerator executeInline
The plain StageGenerator, no reordering
-
-
Method Detail
-
setGenerator
public static void setGenerator(Context context, StageGenerator stageGenerator)
-
getGenerator
public static StageGenerator getGenerator(Context context)
-
getGenerator
public static StageGenerator getGenerator()
-
standardGenerator
public static StageGenerator standardGenerator()
-
chooseStageGenerator
public static StageGenerator chooseStageGenerator(Context context)
-
-