Class AvroRowSerializationSchema

    • Constructor Detail

      • AvroRowSerializationSchema

        public AvroRowSerializationSchema​(Class<? extends org.apache.avro.specific.SpecificRecord> recordClazz)
        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)
        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
    • Method Detail

      • serialize

        public byte[] serialize​(Row row)
        Description copied from interface: SerializationSchema
        Serializes the incoming element to a specified type.
        Specified by:
        serialize in interface SerializationSchema<Row>
        Parameters:
        row - The incoming element to be serialized
        Returns:
        The serialized element.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object