Class 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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.avro.Schema read​(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<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, setGenerics, setImmutable
    • Constructor Detail

      • AvroSchemaSerializer

        public AvroSchemaSerializer()
    • Method Detail

      • 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<org.apache.avro.Schema> type)
        Specified by:
        read in class com.esotericsoftware.kryo.Serializer<org.apache.avro.Schema>