Class LogicalOpGPOptAdd
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.logical.impl.LogicalOpGPOptAdd
- All Implemented Interfaces:
QueryPlanOperator,LogicalOperator,UnaryLogicalOp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FederationMemberprotected final SPARQLGraphPatternprotected TriplePatternprotected boolean -
Constructor Summary
Constructors -
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.getTP()Returns the graph pattern of this operator as a triple pattern if this pattern is only a triple pattern.inthashCode()toString()voidvisit(LogicalPlanVisitor visitor)
-
Field Details
-
fm
-
pattern
-
tp
-
tpCheckDone
protected boolean tpCheckDone
-
-
Constructor Details
-
LogicalOpGPOptAdd
-
-
Method Details
-
getFederationMember
-
getPattern
-
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
-