Class LogicalServiceQuery


  • public class LogicalServiceQuery
    extends PlanNodeBodyServiceQuery
    Service query which represents a logical service query to be used in the early stages of rewriting and optimization. Can be converted to a physical query when rewriting is complete.
    • Field Detail

      • mService

        protected final Service mService
    • Constructor Detail

      • LogicalServiceQuery

        public LogicalServiceQuery​(@Nullable
                                   Service theService,
                                   IRI theServiceIri,
                                   com.complexible.stardog.plan.PlanNode theBody)
        Parameters:
        theService - can be null for variable-service queries and tests
    • Method Detail

      • 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: ServiceQuery
        Evaluate the query
        Specified by:
        evaluate in class ServiceQuery
        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
      • replaceBodyTerms

        public com.complexible.stardog.plan.PlanNode replaceBodyTerms​(com.complexible.stardog.plan.util.PlanNodeVarReplacer termReplacer,
                                                                      com.complexible.stardog.plan.ServicePlanNode node)
        Overrides:
        replaceBodyTerms in class PlanNodeBodyServiceQuery
      • toPhysicalQuery

        public com.complexible.stardog.plan.PlanNode toPhysicalQuery​(com.complexible.stardog.plan.eval.ExecutionContext execCxt,
                                                                     com.complexible.stardog.plan.QueryTerm context,
                                                                     java.util.function.IntFunction<java.lang.String> varNames,
                                                                     java.util.function.Function<java.lang.String,​java.lang.Integer> varAllocator,
                                                                     boolean silent)
        Translate the logical query to a physical plan tree, typically built using service queries as data sources.
      • isClosed

        public boolean isClosed()
        Description copied from class: ServiceQuery
        Is the service query "closed"? or can we still use it?
        Overrides:
        isClosed in class ServiceQuery
      • customTermReplacement

        public boolean customTermReplacement()
      • supportsConstantReplacement

        public boolean supportsConstantReplacement()