public class AvroRowSerializationSchema extends Object implements SerializationSchema<Row>
Row
over SpecificRecord
into a Avro bytes.Constructor and Description |
---|
AvroRowSerializationSchema(Class<? extends org.apache.avro.specific.SpecificRecord> recordClazz)
Creates a Avro serialization schema for the given schema.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
serialize(Row row)
Serializes the incoming element to a specified type.
|
public AvroRowSerializationSchema(Class<? extends org.apache.avro.specific.SpecificRecord> recordClazz)
recordClazz
- Avro record class used to deserialize Avro's record to Flink's rowpublic byte[] serialize(Row row)
SerializationSchema
serialize
in interface SerializationSchema<Row>
row
- The incoming element to be serializedCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.