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 Deprecated Methods Modifier and Type Method Description static booleancontainsExtension(TupleExpr t)static booleancontainsProjection(TupleExpr t)Deprecated.UsecontainsSubquery(TupleExpr)instead.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 booleanisGraphPatternGroup(TupleExpr expr)Deprecated.UseisVariableScopeChange(TupleExpr)instead.static 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.
-
isGraphPatternGroup
@Deprecated(since="3.2") public static boolean isGraphPatternGroup(TupleExpr expr)
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(since="2.0") public static boolean containsProjection(TupleExpr t)
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
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.
-
-