Package io.trino.hive.formats.avro.model
Record Class DefaultValueFieldRecordFieldReadAction
java.lang.Object
java.lang.Record
io.trino.hive.formats.avro.model.DefaultValueFieldRecordFieldReadAction
- All Implemented Interfaces:
RecordFieldReadAction
public record DefaultValueFieldRecordFieldReadAction(org.apache.avro.Schema fieldSchema, byte[] defaultBytes, int outputChannel)
extends Record
implements RecordFieldReadAction
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultValueFieldRecordFieldReadAction(org.apache.avro.Schema fieldSchema, byte[] defaultBytes, int outputChannel) Creates an instance of aDefaultValueFieldRecordFieldReadActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of thedefaultBytesrecord component.final booleanIndicates whether some other object is "equal to" this one.org.apache.avro.SchemaReturns the value of thefieldSchemarecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theoutputChannelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultValueFieldRecordFieldReadAction
public DefaultValueFieldRecordFieldReadAction(org.apache.avro.Schema fieldSchema, byte[] defaultBytes, int outputChannel) Creates an instance of aDefaultValueFieldRecordFieldReadActionrecord class.- Parameters:
fieldSchema- the value for thefieldSchemarecord componentdefaultBytes- the value for thedefaultBytesrecord 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 '=='. -
fieldSchema
public org.apache.avro.Schema fieldSchema()Returns the value of thefieldSchemarecord component.- Returns:
- the value of the
fieldSchemarecord component
-
defaultBytes
public byte[] defaultBytes()Returns the value of thedefaultBytesrecord component.- Returns:
- the value of the
defaultBytesrecord component
-
outputChannel
public int outputChannel()Returns the value of theoutputChannelrecord component.- Returns:
- the value of the
outputChannelrecord component
-