Class PlanNodeBodyServiceQuery
java.lang.Object
com.complexible.stardog.plan.eval.service.ServiceQuery
com.complexible.stardog.plan.eval.service.PlanNodeBodyServiceQuery
- Direct Known Subclasses:
LogicalServiceQuery,PlanNodeBodyServiceQuery.CanonicalizedPlanNodeBodyServiceQuery
A
ServiceQuery with a PlanNode as the body.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classThis machinery allows subclasses to return a "canonicalized" version of the query to be used in plan caching.static classstatic classBase builder forPlanNodeBodyServiceQueryobjectsNested 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 -
Constructor Summary
ConstructorsConstructorDescriptionPlanNodeBodyServiceQuery(IRI theServiceIri, com.complexible.stardog.plan.PlanNode body) -
Method Summary
Modifier and TypeMethodDescriptioncom.complexible.stardog.plan.PlanNodebody()booleanexplain(com.complexible.stardog.plan.PlanVarInfo theVarInfo, com.complexible.stardog.plan.util.QueryTermRenderer renderer) Returns an explain string for the service invocationexplainVerbose(com.complexible.stardog.plan.PlanVarInfo theVarInfo, com.complexible.stardog.plan.util.QueryTermRenderer renderer) Returns an explain string for the service invocation in a parsable verbose formatcom.google.common.collect.ImmutableSet<Integer> com.google.common.collect.ImmutableSet<Integer> What are the vars guaranteed to be bound by this query?com.google.common.collect.ImmutableSet<Integer> com.google.common.collect.ImmutableSet<Integer> com.google.common.collect.ImmutableSet<Integer> com.google.common.collect.ImmutableSet<Integer> com.complexible.stardog.plan.cache.TermPositionPredicateinthashCode()replaceBody(com.complexible.stardog.plan.PlanNode newBody) com.complexible.stardog.plan.PlanNodereplaceBodyTerms(com.complexible.stardog.plan.util.PlanNodeVarReplacer termReplacer, com.complexible.stardog.plan.ServicePlanNode node) The default implementation of query term replacement in a service body represented as a plan nodefinal com.complexible.stardog.plan.PlanNodereplaceBodyTerms(com.complexible.stardog.plan.util.PlanNodeVarReplacer termReplacer, com.complexible.stardog.plan.ServicePlanNode node, Set<Integer> nonReplaceableVars) The implementation of query term replacement in a service body represented as a plan node with a set of variables which cannot be replacedMethods inherited from class com.complexible.stardog.plan.eval.service.ServiceQuery
alternativeDistinctValues, canServiceJoin, distinctValues, estimateCardinality, estimateJoinCardinality, evaluate, evaluate, evaluateSilent, evaluateSilent, generatesValues, get, getCardinality, getNamespaces, getOptions, getRequiredInputBindings, getRequiredUnboundOutputs, getUnsatisfiableConstraintsMessage, hasDuplicates, isBodySparqlQuery, isClosed, preservesJoinArgumentOrdering, serviceTerm, setCardinality, setNamespaces, supportsJoinArgument
-
Constructor Details
-
PlanNodeBodyServiceQuery
-
-
Method Details
-
getSubjectVars
- Overrides:
getSubjectVarsin classServiceQuery
-
getPredicateVars
- Overrides:
getPredicateVarsin classServiceQuery
-
getObjectVars
- Overrides:
getObjectVarsin classServiceQuery
-
getContextVars
- Overrides:
getContextVarsin classServiceQuery
-
body
public com.complexible.stardog.plan.PlanNode body() -
replaceBody
-
replaceBodyTerms
public com.complexible.stardog.plan.PlanNode replaceBodyTerms(com.complexible.stardog.plan.util.PlanNodeVarReplacer termReplacer, com.complexible.stardog.plan.ServicePlanNode node) The default implementation of query term replacement in a service body represented as a plan node -
replaceBodyTerms
public final com.complexible.stardog.plan.PlanNode replaceBodyTerms(com.complexible.stardog.plan.util.PlanNodeVarReplacer termReplacer, com.complexible.stardog.plan.ServicePlanNode node, Set<Integer> nonReplaceableVars) The implementation of query term replacement in a service body represented as a plan node with a set of variables which cannot be replaced -
getAssuredVars
Description copied from class:ServiceQueryWhat are the vars guaranteed to be bound by this query?- Specified by:
getAssuredVarsin classServiceQuery
-
getAllVars
- Specified by:
getAllVarsin classServiceQuery
-
explain
public String explain(com.complexible.stardog.plan.PlanVarInfo theVarInfo, com.complexible.stardog.plan.util.QueryTermRenderer renderer) Description copied from class:ServiceQueryReturns an explain string for the service invocation- Specified by:
explainin classServiceQuery- Returns:
- an explain string for the service invocation or
nullif there is no custom explanation
-
explainVerbose
public String explainVerbose(com.complexible.stardog.plan.PlanVarInfo theVarInfo, com.complexible.stardog.plan.util.QueryTermRenderer renderer) Description copied from class:ServiceQueryReturns an explain string for the service invocation in a parsable verbose format- Specified by:
explainVerbosein classServiceQuery- Returns:
- an explain string in verbose format
-
hashCode
public int hashCode()- Specified by:
hashCodein classServiceQuery
-
equals
- Specified by:
equalsin classServiceQuery
-
toBuilder
- Overrides:
toBuilderin classServiceQuery
-
noopBuilder
public static PlanNodeBodyServiceQuery.PlanNodeBodyServiceQueryBuilder noopBuilder(PlanNodeBodyServiceQuery query) -
getTermPositionPredicate
public com.complexible.stardog.plan.cache.TermPositionPredicate getTermPositionPredicate()
-