Package org.apache.flink.formats.avro
Class AvroRowSerializationSchema
- java.lang.Object
-
- org.apache.flink.formats.avro.AvroRowSerializationSchema
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row>
@Deprecated public class AvroRowSerializationSchema extends Object implements org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row>
Deprecated.The format was developed for the Table API users and will not be maintained for DataStream API users anymore. Either use Table API or switch to Data Stream, defining your ownSerializationSchema.Serialization schema that serializesRowinto Avro bytes.Serializes objects that are represented in (nested) Flink rows. It supports types that are compatible with Flink's Table & SQL API.
Note: Changes in this class need to be kept in sync with the corresponding runtime class
AvroRowDeserializationSchemaand schema converterAvroSchemaConverter.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AvroRowSerializationSchema(Class<? extends org.apache.avro.specific.SpecificRecord> recordClazz)Deprecated.Creates an Avro serialization schema for the given specific record class.AvroRowSerializationSchema(String avroSchemaString)Deprecated.Creates an Avro serialization schema for the given Avro schema string.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)Deprecated.inthashCode()Deprecated.byte[]serialize(org.apache.flink.types.Row row)Deprecated.
-
-
-
Constructor Detail
-
AvroRowSerializationSchema
public AvroRowSerializationSchema(Class<? extends org.apache.avro.specific.SpecificRecord> recordClazz)
Deprecated.Creates an Avro serialization schema for the given specific record class.- Parameters:
recordClazz- Avro record class used to serialize Flink's row to Avro's record
-
AvroRowSerializationSchema
public AvroRowSerializationSchema(String avroSchemaString)
Deprecated.Creates an Avro serialization schema for the given Avro schema string.- Parameters:
avroSchemaString- Avro schema string used to serialize Flink's row to Avro's record
-
-