Class LogicalOpGPAdd

java.lang.Object
se.liu.ida.hefquin.engine.queryplan.logical.impl.LogicalOpGPAdd
All Implemented Interfaces:
QueryPlanOperator, LogicalOperator, UnaryLogicalOp

public class LogicalOpGPAdd extends Object implements UnaryLogicalOp
  • Field Details

  • Constructor Details

  • Method Details

    • getFederationMember

      public FederationMember getFederationMember()
    • getPattern

      public SPARQLGraphPattern getPattern()
    • hasParameterVariables

      public boolean hasParameterVariables()
      Returns true if this gpAdd operator has a (nonempty) list of variables as parameter. If so, getParameterVariables() can be used to access this parameter.
    • getParameterVariables

      public Map<String,org.apache.jena.sparql.core.Var> getParameterVariables()
      Returns the (nonempty) list of variables that is a parameter of this gpAdd operator (if any).

      If this gpAdd operator does not have such a parameter, then an UnsupportedOperationException is thrown. You can use hasParameterVariables() to ask whether this gpAdd operator is this parameter.

    • containsTriplePatternOnly

      public boolean containsTriplePatternOnly()
      Returns true if the graph pattern of this operator is only a triple pattern.
    • getTP

      public TriplePattern getTP()
      Returns the graph pattern of this operator as a triple pattern if this pattern is only a triple pattern.

      Before calling this function, use containsTriplePatternOnly() to check whether the pattern is indeed only a triple pattern.

      If it is not, this method throws an UnsupportedOperationException.

    • getExpectedVariables

      public ExpectedVariables getExpectedVariables(ExpectedVariables... inputVars)
      Description copied from interface: QueryPlanOperator
      Returns the variables that can be expected in the solution mappings produced by this operator in the case that the input(s) to this operator contain solutions mappings with the given set(s) of variables. The number of ExpectedVariables objects passed to this method must be in line with the degree of this operator (e.g., for a unary operator, exactly one such object must be passed).
      Specified by:
      getExpectedVariables in interface QueryPlanOperator
    • visit

      public void visit(LogicalPlanVisitor visitor)
      Specified by:
      visit in interface LogicalOperator
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object