Record Class IrRepeat
java.lang.Object
java.lang.Record
io.trino.sql.routine.ir.IrRepeat
- All Implemented Interfaces:
IrNode,IrStatement
public record IrRepeat(Optional<IrLabel> label, RowExpression condition, IrBlock block)
extends Record
implements IrStatement
-
Constructor Summary
ConstructorsConstructorDescriptionIrRepeat(Optional<IrLabel> label, RowExpression condition, IrBlock block) Creates an instance of aIrRepeatrecord class. -
Method Summary
Modifier and TypeMethodDescription<C,R> R accept(IrNodeVisitor<C, R> visitor, C context) block()Returns the value of theblockrecord component.Returns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IrRepeat
Creates an instance of aIrRepeatrecord class.- Parameters:
label- the value for thelabelrecord componentcondition- the value for theconditionrecord componentblock- the value for theblockrecord component
-
-
Method Details
-
accept
-
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). -
label
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-