Package io.trino.hive.formats.avro.model
Record Class ReadFieldAction
java.lang.Object
java.lang.Record
io.trino.hive.formats.avro.model.ReadFieldAction
- All Implemented Interfaces:
RecordFieldReadAction
public record ReadFieldAction(AvroReadAction readAction, int outputChannel)
extends Record
implements RecordFieldReadAction
-
Constructor Summary
ConstructorsConstructorDescriptionReadFieldAction(AvroReadAction readAction, int outputChannel) Creates an instance of aReadFieldActionrecord class. -
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.intReturns the value of theoutputChannelrecord component.Returns the value of thereadActionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReadFieldAction
Creates an instance of aReadFieldActionrecord class.- Parameters:
readAction- the value for thereadActionrecord componentoutputChannel- the value for theoutputChannelrecord component
-
-
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 '=='. -
readAction
Returns the value of thereadActionrecord component.- Returns:
- the value of the
readActionrecord component
-
outputChannel
public int outputChannel()Returns the value of theoutputChannelrecord component.- Returns:
- the value of the
outputChannelrecord component
-