Class ConstantOptimizer.ConstantVisitor
java.lang.Object
org.eclipse.rdf4j.query.algebra.helpers.AbstractSimpleQueryModelVisitor<RuntimeException>
org.eclipse.rdf4j.query.algebra.evaluation.optimizer.ConstantOptimizer.VarNameCollector
org.eclipse.rdf4j.query.algebra.evaluation.optimizer.ConstantOptimizer.ConstantVisitor
- All Implemented Interfaces:
QueryModelVisitor<RuntimeException>
- Enclosing class:
ConstantOptimizer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final QueryEvaluationContext(package private) List<ProjectionElemList> private final EvaluationStrategyFields inherited from class ConstantOptimizer.VarNameCollector
varNames -
Constructor Summary
ConstructorsConstructorDescriptionConstantVisitor(EvaluationStrategy strategy, QueryEvaluationContext context) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisConstant(ValueExpr expr) private booleanisConstantZeroArgFunction(FunctionCall functionCall) Determines if the provided zero-arg function is a function that should return a constant value for the entire query execution (e.g NOW()), or if it should generate a new value for every call (e.g.voidvoidvoidmeet(FunctionCall functionCall) voidvoidvoidmeet(ProjectionElemList projElems) voidOverride meetBinaryValueOperatorprotected voidmeetBinaryValueOperator(BinaryValueOperator binaryValueOp) Method called by all meet methods with aBinaryValueOperatornode as argument.protected voidmeetUnaryValueOperator(UnaryValueOperator unaryValueOp) Method called by all meet methods with aUnaryValueOperatornode as argument.Methods inherited from class ConstantOptimizer.VarNameCollector
meetMethods inherited from class AbstractSimpleQueryModelVisitor
meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meetBinaryTupleOperator, meetCompareSubQueryValueOperator, meetNAryValueOperator, meetOther, meetSubQueryValueOperator, meetUnaryTupleOperator, meetUnsupported, meetUpdateExpr
-
Field Details
-
strategy
-
context
-
projElemLists
List<ProjectionElemList> projElemLists
-
-
Constructor Details
-
ConstantVisitor
-
-
Method Details
-
meet
- Specified by:
meetin interfaceQueryModelVisitor<RuntimeException>- Overrides:
meetin classAbstractSimpleQueryModelVisitor<RuntimeException>
-
meet
- Specified by:
meetin interfaceQueryModelVisitor<RuntimeException>- Overrides:
meetin classAbstractSimpleQueryModelVisitor<RuntimeException>
-
meet
- Specified by:
meetin interfaceQueryModelVisitor<RuntimeException>- Overrides:
meetin classAbstractSimpleQueryModelVisitor<RuntimeException>
-
meetBinaryValueOperator
Description copied from class:AbstractSimpleQueryModelVisitorMethod called by all meet methods with aBinaryValueOperatornode as argument.- Overrides:
meetBinaryValueOperatorin classAbstractSimpleQueryModelVisitor<RuntimeException>- Parameters:
binaryValueOp- The node that is being visited.
-
meetUnaryValueOperator
Description copied from class:AbstractSimpleQueryModelVisitorMethod called by all meet methods with aUnaryValueOperatornode as argument.- Overrides:
meetUnaryValueOperatorin classAbstractSimpleQueryModelVisitor<RuntimeException>- Parameters:
unaryValueOp- The node that is being visited.
-
meet
- Specified by:
meetin interfaceQueryModelVisitor<RuntimeException>- Overrides:
meetin classAbstractSimpleQueryModelVisitor<RuntimeException>
-
isConstantZeroArgFunction
Determines if the provided zero-arg function is a function that should return a constant value for the entire query execution (e.g NOW()), or if it should generate a new value for every call (e.g. RAND()).- Parameters:
functionCall- a zero-arg function call.- Returns:
trueiff the provided function returns a constant value for the query execution,falseotherwise.
-
meet
- Specified by:
meetin interfaceQueryModelVisitor<RuntimeException>- Overrides:
meetin classAbstractSimpleQueryModelVisitor<RuntimeException>
-
meet
- Specified by:
meetin interfaceQueryModelVisitor<RuntimeException>- Overrides:
meetin classAbstractSimpleQueryModelVisitor<RuntimeException>
-
meet
Override meetBinaryValueOperator- Specified by:
meetin interfaceQueryModelVisitor<RuntimeException>- Overrides:
meetin classAbstractSimpleQueryModelVisitor<RuntimeException>
-
isConstant
-