Record Class IrConstantJsonSequence
java.lang.Object
java.lang.Record
io.trino.json.ir.IrConstantJsonSequence
- All Implemented Interfaces:
IrPathNode
public record IrConstantJsonSequence(List<com.fasterxml.jackson.databind.JsonNode> sequence, Optional<Type> type)
extends Record
implements IrPathNode
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIrConstantJsonSequence(List<com.fasterxml.jackson.databind.JsonNode> sequence, Optional<Type> type) Creates an instance of aIrConstantJsonSequencerecord class. -
Method Summary
Modifier and TypeMethodDescription<R,C> R accept(IrJsonPathVisitor<R, C> visitor, C context) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<com.fasterxml.jackson.databind.JsonNode> sequence()Returns the value of thesequencerecord component.static IrConstantJsonSequencesingletonSequence(com.fasterxml.jackson.databind.JsonNode jsonNode, Optional<Type> type) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
EMPTY_SEQUENCE
-
-
Constructor Details
-
IrConstantJsonSequence
-
-
Method Details
-
singletonSequence
public static IrConstantJsonSequence singletonSequence(com.fasterxml.jackson.databind.JsonNode jsonNode, Optional<Type> type) -
accept
- Specified by:
acceptin interfaceIrPathNode
-
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). -
sequence
Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceIrPathNode- Returns:
- the value of the
typerecord component
-