Package io.trino.hive.formats.avro.model
Record Class ReadErrorReadAction
java.lang.Object
java.lang.Record
io.trino.hive.formats.avro.model.ReadErrorReadAction
- All Implemented Interfaces:
AvroReadAction
public record ReadErrorReadAction(org.apache.avro.Schema readSchema, org.apache.avro.Schema writeSchema, org.apache.avro.Resolver.ErrorAction.ErrorType errorType, String errorString)
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
ConstructorsConstructorDescriptionReadErrorReadAction(org.apache.avro.Schema readSchema, org.apache.avro.Schema writeSchema, org.apache.avro.Resolver.ErrorAction.ErrorType errorType, String errorString) Creates an instance of aReadErrorReadActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorStringrecord component.org.apache.avro.Resolver.ErrorAction.ErrorTypeReturns the value of theerrorTyperecord component.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.org.apache.avro.SchemaReturns the value of thewriteSchemarecord component.
-
Constructor Details
-
ReadErrorReadAction
public ReadErrorReadAction(org.apache.avro.Schema readSchema, org.apache.avro.Schema writeSchema, org.apache.avro.Resolver.ErrorAction.ErrorType errorType, String errorString) Creates an instance of aReadErrorReadActionrecord class.- Parameters:
readSchema- the value for thereadSchemarecord componentwriteSchema- the value for thewriteSchemarecord componenterrorType- the value for theerrorTyperecord componenterrorString- the value for theerrorStringrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-
errorType
public org.apache.avro.Resolver.ErrorAction.ErrorType errorType()Returns the value of theerrorTyperecord component.- Returns:
- the value of the
errorTyperecord component
-
errorString
Returns the value of theerrorStringrecord component.- Returns:
- the value of the
errorStringrecord component
-