Record Class QueryEvaluationInput
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.component_builder.evaluators.query_evaluation.auxiliary.QueryEvaluationInput
- Record Components:
query- the query to evaluatefactBase- the fact base used for evaluationqueryEvaluator- the evaluator to runconstantsOnly- whether substitutions must target constants onlycount- whether the evaluation should count answers instead of materializing them
-
Constructor Summary
ConstructorsConstructorDescriptionQueryEvaluationInput(Query query, FactBase factBase, QueryEvaluator<Query, ? super FactBase> queryEvaluator, boolean constantsOnly, boolean count) Creates a validated query-evaluation input. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theconstantsOnlyrecord component.booleancount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.factBase()Returns the value of thefactBaserecord component.final inthashCode()Returns a hash code value for this object.query()Returns the value of thequeryrecord component.QueryEvaluator<Query, ? super FactBase> Returns the value of thequeryEvaluatorrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
QueryEvaluationInput
public QueryEvaluationInput(Query query, FactBase factBase, QueryEvaluator<Query, ? super FactBase> queryEvaluator, boolean constantsOnly, boolean count) Creates a validated query-evaluation input.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
query
-
factBase
-
queryEvaluator
Returns the value of thequeryEvaluatorrecord component.- Returns:
- the value of the
queryEvaluatorrecord component
-
constantsOnly
public boolean constantsOnly()Returns the value of theconstantsOnlyrecord component.- Returns:
- the value of the
constantsOnlyrecord component
-
count
-