Record Class QueryEvaluationOutput
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.component_builder.evaluators.query_evaluation.auxiliary.QueryEvaluationOutput
- Record Components:
query- the evaluated queryanswers- the iterator of answers, when materialized answers are availableresult_size- the number of answers, when only the count is availablemessage- an optional preformatted message
-
Constructor Summary
ConstructorsConstructorDescriptionQueryEvaluationOutput(Query query, Iterator<Substitution> answers, Long result_size, String message) Creates a query evaluation output and validates the provided payload. -
Method Summary
Modifier and TypeMethodDescriptionanswers()Returns the value of theanswersrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns a printable summary containing the query and every answer.Returns a printable summary containing the query and the answer count.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns only the answer count portion of the output.query()Returns the value of thequeryrecord component.Returns the value of theresult_sizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryEvaluationOutput
public QueryEvaluationOutput(Query query, Iterator<Substitution> answers, Long result_size, String message) Creates a query evaluation output and validates the provided payload.
-
-
Method Details
-
getPrintQueryAnswersCount
Returns a printable summary containing the query and the answer count.- Returns:
- the formatted query/count message
-
printOnlyAnswersCount
Returns only the answer count portion of the output.- Returns:
- the formatted count message
-
getPrintQueryAnswers
Returns a printable summary containing the query and every answer.- Returns:
- the formatted query/answers message
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
query
-
answers
-
result_size
Returns the value of theresult_sizerecord component.- Returns:
- the value of the
result_sizerecord component
-
message
-