Class TupleExprs
- java.lang.Object
-
- org.eclipse.rdf4j.query.algebra.helpers.TupleExprs
-
-
Constructor Summary
Constructors Constructor Description TupleExprs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsExtension(TupleExpr t)static booleancontainsSubquery(TupleExpr t)Verifies if the suppliedTupleExprcontains aProjectionwith the subquery flag set to true (default).static VarcreateConstVar(Value value)Creates an (anonymous) Var representing a constant value.static List<TupleExpr>getChildren(TupleExpr t)ReturnsTupleExprchildren of the given node.static StringgetConstVarName(Value value)static booleanisFilterExistsFunction(TupleExpr expr)Verifies if the supplied expression is a FILTER (NOT) EXISTS operationstatic booleanisVariableScopeChange(TupleExpr expr)Verifies if the suppliedTupleExprrepresents a variable scope change.
-
-
-
Method Detail
-
containsSubquery
public static boolean containsSubquery(TupleExpr t)
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
public static boolean containsExtension(TupleExpr t)
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
public static boolean isVariableScopeChange(TupleExpr expr)
Verifies if the suppliedTupleExprrepresents a variable scope change.- Parameters:
expr- aTupleExpr- Returns:
trueif theTupleExprimplementsVariableScopeChangeand has its scope change flag set totrue,falseotherwise.
-
getChildren
public static List<TupleExpr> getChildren(TupleExpr t)
ReturnsTupleExprchildren of the given node.- Parameters:
t- a tuple expression.- Returns:
- a list of TupleExpr children.
-
createConstVar
public static Var createConstVar(Value value)
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.
-
isFilterExistsFunction
public static boolean isFilterExistsFunction(TupleExpr expr)
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.
-
-