SerializationSchema.@Deprecated public class AvroRowSerializationSchema extends Object implements org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row>
Row into Avro bytes.
Serializes objects that are represented in (nested) Flink rows. It support 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
AvroRowDeserializationSchema and schema converter AvroSchemaConverter.
| 构造器和说明 |
|---|
AvroRowSerializationSchema(Class<? extends org.apache.avro.specific.SpecificRecord> recordClazz)
已过时。
Creates an Avro serialization schema for the given specific record class.
|
AvroRowSerializationSchema(String avroSchemaString)
已过时。
Creates an Avro serialization schema for the given Avro schema string.
|
public AvroRowSerializationSchema(Class<? extends org.apache.avro.specific.SpecificRecord> recordClazz)
recordClazz - Avro record class used to serialize Flink's row to Avro's recordpublic AvroRowSerializationSchema(String avroSchemaString)
avroSchemaString - Avro schema string used to serialize Flink's row to Avro's recordCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.