Class TupleExprs
java.lang.Object
org.eclipse.rdf4j.query.algebra.helpers.TupleExprs
Utility methods for
TupleExpr objects.- Author:
- Jeen Broekstra
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanDeprecated.static booleanVerifies if the suppliedTupleExprcontains aProjectionwith the subquery flag set to true (default).static VarcreateConstVar(Value value) Creates an (anonymous) Var representing a constant value.ReturnsTupleExprchildren of the given node.static StringgetConstVarName(Value value) static booleanVerifies if the supplied expression is a FILTER (NOT) EXISTS operationstatic booleanisGraphPatternGroup(TupleExpr expr) Deprecated.UseisVariableScopeChange(TupleExpr)instead.static booleanVerifies if the suppliedTupleExprrepresents a variable scope change.
-
Constructor Details
-
TupleExprs
public TupleExprs()
-
-
Method Details
-
containsSubquery
Verifies if the suppliedTupleExprcontains aProjectionwith the subquery flag set to true (default). If the supplied TupleExpr is aJoinor contains aJoin, projections inside that Join's arguments will not be taken into account.- Parameters:
t- a tuple expression.- Returns:
trueif the TupleExpr contains a subquery projection (outside of a Join),falseotherwise.
-
containsExtension
Verifies if the suppliedTupleExprcontains aExtension. If the supplied TupleExpr is aJoinor contains aJoin, aServiceclause or a subquery element, extensions inside that element's argument will not be taken into account.- Parameters:
t- a tuple expression.- Returns:
trueif the TupleExpr contains an Extension (outside of a Join, Service clause, or subquery),falseotherwise.
-
isVariableScopeChange
Verifies if the suppliedTupleExprrepresents a variable scope change.- Parameters:
expr- aTupleExpr- Returns:
trueif theTupleExprimplementsVariableScopeChangeand has its scope change flag set totrue,falseotherwise.
-
isGraphPatternGroup
Deprecated.UseisVariableScopeChange(TupleExpr)instead.Verifies if the suppliedTupleExprrepresents a group graph pattern.- Parameters:
expr- aTupleExpr- Returns:
trueif theTupleExprisGraphPatternGroupableand has its graph pattern group flag set totrue,falseotherwise.
-
containsProjection
Deprecated.UsecontainsSubquery(TupleExpr)instead.Verifies if the suppliedTupleExprcontains aProjection. If the supplied TupleExpr is aJoinor contains aJoin, projections inside that Join's arguments will not be taken into account.- Parameters:
t- a tuple expression.- Returns:
trueif the TupleExpr contains a projection (outside of a Join),falseotherwise.
-
getChildren
ReturnsTupleExprchildren of the given node.- Parameters:
t- a tuple expression.- Returns:
- a list of TupleExpr children.
-
createConstVar
Creates an (anonymous) Var representing a constant value. The variable name will be derived from the actual value to guarantee uniqueness.- Parameters:
value-- Returns:
- an (anonymous) Var representing a constant value.
-
getConstVarName
-
isFilterExistsFunction
Verifies if the supplied expression is a FILTER (NOT) EXISTS operation- Parameters:
expr- a tuple expression- Returns:
- true if the supplied expression is a FILTER (NOT) EXISTS operation, false otherwise.
-
containsSubquery(TupleExpr)instead.