Class LogicalOpGPAdd
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.logical.impl.LogicalOpGPAdd
- All Implemented Interfaces:
QueryPlanOperator,LogicalOperator,UnaryLogicalOp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FederationMemberprotected final SPARQLGraphPatternprotected TriplePatternprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionLogicalOpGPAdd(FederationMember fm, SPARQLGraphPattern pattern, Map<String, org.apache.jena.sparql.core.Var> paramVars) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the graph pattern of this operator is only a triple pattern.booleangetExpectedVariables(ExpectedVariables... inputVars) 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.Returns the (nonempty) list of variables that is a parameter of this gpAdd operator (if any).getTP()Returns the graph pattern of this operator as a triple pattern if this pattern is only a triple pattern.inthashCode()booleanReturnstrueif this gpAdd operator has a (nonempty) list of variables as parameter.toString()voidvisit(LogicalPlanVisitor visitor)
-
Field Details
-
fm
-
pattern
-
paramVars
-
tp
-
tpCheckDone
protected boolean tpCheckDone
-
-
Constructor Details
-
LogicalOpGPAdd
public LogicalOpGPAdd(FederationMember fm, SPARQLGraphPattern pattern, Map<String, org.apache.jena.sparql.core.Var> paramVars)
-
-
Method Details
-
getFederationMember
-
getPattern
-
hasParameterVariables
public boolean hasParameterVariables()Returnstrueif this gpAdd operator has a (nonempty) list of variables as parameter. If so,getParameterVariables()can be used to access this parameter. -
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
UnsupportedOperationExceptionis thrown. You can usehasParameterVariables()to ask whether this gpAdd operator is this parameter. -
containsTriplePatternOnly
public boolean containsTriplePatternOnly()Returnstrueif the graph pattern of this operator is only a triple pattern. -
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
Description copied from interface:QueryPlanOperatorReturns 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 ofExpectedVariablesobjects 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:
getExpectedVariablesin interfaceQueryPlanOperator
-
visit
- Specified by:
visitin interfaceLogicalOperator
-
equals
-
hashCode
-
toString
-