Class AvroKryoSerializerUtils.AvroSchemaSerializer

java.lang.Object
com.esotericsoftware.kryo.Serializer<org.apache.avro.Schema>
org.apache.flink.formats.avro.utils.AvroKryoSerializerUtils.AvroSchemaSerializer
All Implemented Interfaces:
Serializable
Enclosing class:
AvroKryoSerializerUtils

public static class AvroKryoSerializerUtils.AvroSchemaSerializer extends com.esotericsoftware.kryo.Serializer<org.apache.avro.Schema> implements Serializable
Slow serialization approach for Avro schemas. This is only used with {GenericData.Record} types. Having this serializer, we are able to handle avro Records.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.avro.Schema
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends org.apache.avro.Schema> type)
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, org.apache.avro.Schema object)
     

    Methods inherited from class com.esotericsoftware.kryo.Serializer

    copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AvroSchemaSerializer

      public AvroSchemaSerializer()
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, org.apache.avro.Schema object)
      Specified by:
      write in class com.esotericsoftware.kryo.Serializer<org.apache.avro.Schema>
    • read

      public org.apache.avro.Schema read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends org.apache.avro.Schema> type)
      Specified by:
      read in class com.esotericsoftware.kryo.Serializer<org.apache.avro.Schema>