Class PlanNodeBodyServiceQuery.CanonicalizedPlanNodeBodyServiceQuery
java.lang.Object
com.complexible.stardog.plan.eval.service.ServiceQuery
com.complexible.stardog.plan.eval.service.PlanNodeBodyServiceQuery
com.complexible.stardog.plan.eval.service.PlanNodeBodyServiceQuery.CanonicalizedPlanNodeBodyServiceQuery
- Enclosing class:
PlanNodeBodyServiceQuery
protected static class PlanNodeBodyServiceQuery.CanonicalizedPlanNodeBodyServiceQuery
extends PlanNodeBodyServiceQuery
This machinery allows subclasses to return a "canonicalized" version of the query to be used
in plan caching. When the canonical constants are substituted with concrete constants for
re-using the query from the cache, the
mConcreteBuilder will be invoked creating a
query of the original query class.-
Nested Class Summary
Nested classes/interfaces inherited from class com.complexible.stardog.plan.eval.service.PlanNodeBodyServiceQuery
PlanNodeBodyServiceQuery.CanonicalizedPlanNodeBodyServiceQuery, PlanNodeBodyServiceQuery.CanonicalizedPlanNodeBodyServiceQueryBuilder, PlanNodeBodyServiceQuery.PlanNodeBodyServiceQueryBuilderNested classes/interfaces inherited from class com.complexible.stardog.plan.eval.service.ServiceQuery
ServiceQuery.DistinctValuesEstimationFunction, ServiceQuery.ServiceQueryBuilder -
Field Summary
Fields inherited from class com.complexible.stardog.plan.eval.service.ServiceQuery
DEFAULT_CARDINALITY, mCardinality, mOptions -
Method Summary
Modifier and TypeMethodDescriptioncom.complexible.stardog.plan.eval.operator.SolutionIterator<?> evaluate(com.complexible.stardog.plan.eval.ExecutionContext theContext, com.complexible.stardog.plan.eval.operator.Operator theArg, com.complexible.stardog.plan.PlanVarInfo theVarInfo) Evaluate the queryMethods inherited from class com.complexible.stardog.plan.eval.service.PlanNodeBodyServiceQuery
body, equals, explain, explainVerbose, getAllVars, getAssuredVars, getContextVars, getObjectVars, getPredicateVars, getSubjectVars, getTermPositionPredicate, hashCode, noopBuilder, replaceBody, replaceBodyTerms, replaceBodyTermsMethods inherited from class com.complexible.stardog.plan.eval.service.ServiceQuery
alternativeDistinctValues, canServiceJoin, distinctValues, estimateCardinality, estimateJoinCardinality, evaluate, evaluateSilent, evaluateSilent, generatesValues, get, getCardinality, getNamespaces, getOptions, getRequiredInputBindings, getRequiredUnboundOutputs, getUnsatisfiableConstraintsMessage, hasDuplicates, isBodySparqlQuery, isClosed, preservesJoinArgumentOrdering, serviceTerm, setCardinality, setNamespaces, supportsJoinArgument
-
Method Details
-
evaluate
public com.complexible.stardog.plan.eval.operator.SolutionIterator<?> evaluate(com.complexible.stardog.plan.eval.ExecutionContext theContext, com.complexible.stardog.plan.eval.operator.Operator theArg, com.complexible.stardog.plan.PlanVarInfo theVarInfo) throws com.complexible.stardog.plan.eval.operator.OperatorException Description copied from class:ServiceQueryEvaluate the query- Specified by:
evaluatein classServiceQuery- Parameters:
theArg- a SIP join argument, null if not present. Solutions from the argument which satisfy the join must retain all bindings, including those which are not used in the join. Note that variables in the argument may be unassured.- Throws:
com.complexible.stardog.plan.eval.operator.OperatorException
-
toBuilder
- Specified by:
toBuilderin classPlanNodeBodyServiceQuery
-