Package io.trino.hive.formats.avro.model
Record Class WrittenUnionReadAction
java.lang.Object
java.lang.Record
io.trino.hive.formats.avro.model.WrittenUnionReadAction
- All Implemented Interfaces:
AvroReadAction
public record WrittenUnionReadAction(org.apache.avro.Schema readSchema, org.apache.avro.Schema writeSchema, boolean unionEqiv, List<AvroReadAction> writeOptionReadActions)
extends Record
implements AvroReadAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.hive.formats.avro.model.AvroReadAction
AvroReadAction.DoubleIoFunction<A>, AvroReadAction.FloatIoFunction<A>, AvroReadAction.IoConsumer<A>, AvroReadAction.LongIoFunction<A> -
Constructor Summary
ConstructorsConstructorDescriptionWrittenUnionReadAction(org.apache.avro.Schema readSchema, org.apache.avro.Schema writeSchema, boolean unionEqiv, List<AvroReadAction> writeOptionReadActions) Creates an instance of aWrittenUnionReadActionrecord 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.org.apache.avro.SchemaReturns the value of thereadSchemarecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunionEqivrecord component.Returns the value of thewriteOptionReadActionsrecord component.org.apache.avro.SchemaReturns the value of thewriteSchemarecord component.
-
Constructor Details
-
WrittenUnionReadAction
public WrittenUnionReadAction(org.apache.avro.Schema readSchema, org.apache.avro.Schema writeSchema, boolean unionEqiv, List<AvroReadAction> writeOptionReadActions) Creates an instance of aWrittenUnionReadActionrecord class.- Parameters:
readSchema- the value for thereadSchemarecord componentwriteSchema- the value for thewriteSchemarecord componentunionEqiv- the value for theunionEqivrecord componentwriteOptionReadActions- the value for thewriteOptionReadActionsrecord 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 '=='. -
readSchema
public org.apache.avro.Schema readSchema()Returns the value of thereadSchemarecord component.- Specified by:
readSchemain interfaceAvroReadAction- Returns:
- the value of the
readSchemarecord component
-
writeSchema
public org.apache.avro.Schema writeSchema()Returns the value of thewriteSchemarecord component.- Specified by:
writeSchemain interfaceAvroReadAction- Returns:
- the value of the
writeSchemarecord component
-
unionEqiv
public boolean unionEqiv()Returns the value of theunionEqivrecord component.- Returns:
- the value of the
unionEqivrecord component
-
writeOptionReadActions
Returns the value of thewriteOptionReadActionsrecord component.- Returns:
- the value of the
writeOptionReadActionsrecord component
-