Interface FilterTuple
-
- All Superinterfaces:
Cloneable,QueryModelNode,Serializable
- All Known Implementing Classes:
ExclusiveGroup,ExclusiveStatement,FedXStatementPattern,StatementSourcePattern
public interface FilterTuple extends QueryModelNode
Expressions implementing this interface can apply someFilterValueExprduring evaluation.- Author:
- Andreas Schwarte
- See Also:
StatementSourcePattern,ExclusiveStatement,ExclusiveGroup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddBoundFilter(String varName, Value value)register a filter that can be directly expressed as a binding, e.g.voidaddFilterExpr(FilterExpr expr)register a new filter expression.BindingSetgetBoundFilters()Returns bound filter bindings, that need to be added as additional bindings to the final resultFilterValueExprgetFilterExpr()List<String>getFreeVars()booleanhasFilter()-
Methods inherited from interface org.eclipse.rdf4j.query.algebra.QueryModelNode
clone, equals, getCostEstimate, getParentNode, getResultSizeActual, getResultSizeEstimate, getSignature, getTotalTimeNanosActual, replaceChildNode, replaceWith, setCostEstimate, setParentNode, setResultSizeActual, setResultSizeEstimate, setTotalTimeNanosActual, toString, visit, visitChildren
-
-
-
-
Method Detail
-
hasFilter
boolean hasFilter()
- Returns:
- true if this expression has a filter to apply
-
addFilterExpr
void addFilterExpr(FilterExpr expr)
register a new filter expression. If the expr has already a filter registered, the new expression is added to aConjunctiveFilterExpr.- Parameters:
expr-
-
addBoundFilter
void addBoundFilter(String varName, Value value)
register a filter that can be directly expressed as a binding, e.g. SELECT * WHERE { ?s p o . FILTER (?s = X) } is equivalent to SELECT * WHERE { X p o . }- Parameters:
varName-value-
-
getFilterExpr
FilterValueExpr getFilterExpr()
- Returns:
- the currently registered filter expressions, usually of type
FilterExprorConjunctiveFilterExpr
-
getBoundFilters
BindingSet getBoundFilters()
Returns bound filter bindings, that need to be added as additional bindings to the final result- Returns:
- the bound filters, or
null
-
-