Record Class RewritingOutput
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.component_builder.evaluators.query_rewriting.auxiliary.RewritingOutput
- Record Components:
query- the rewritten input queryrewritings- the produced union of rewritingsmessage- an optional preformatted message
- All Implemented Interfaces:
Serializable
public record RewritingOutput(Query query, UnionFOQuery rewritings, Optional<String> message)
extends Record
implements Serializable
Stores the outcome of a query rewriting step.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRewritingOutput(Query query, UnionFOQuery rewritings, Optional<String> message) Creates a rewriting output and validates its mandatory payload. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns only the rewriting count portion of the output.Returns a printable summary containing the query and rewriting count.query()Returns the value of thequeryrecord component.Returns the value of therewritingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RewritingOutput
Creates a rewriting output and validates its mandatory payload.
-
-
Method Details
-
printRewritingCount
Returns a printable summary containing the query and rewriting count.- Returns:
- the formatted rewriting-count message
-
printOnlyRewritingCount
Returns only the rewriting count portion of the output.- Returns:
- the formatted rewriting-count 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
-
rewritings
Returns the value of therewritingsrecord component.- Returns:
- the value of the
rewritingsrecord component
-
message
-