Class MapOrderPreservingGenericDatumWriter<T>

  • All Implemented Interfaces:
    org.apache.avro.io.DatumWriter<T>

    public class MapOrderPreservingGenericDatumWriter<T>
    extends org.apache.avro.generic.GenericDatumWriter<T>
    MapOrderPreservingGenericDatumWriter converts map type instances to in-memory serialized format * with a consistent ordering of map entries.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void writeMap​(org.apache.avro.Schema schema, java.lang.Object datum, org.apache.avro.io.Encoder out)  
      • Methods inherited from class org.apache.avro.generic.GenericDatumWriter

        addAvroTypeMsg, addClassCastMsg, convert, getArrayElements, getArraySize, getData, getMapEntries, getMapSize, npe, resolveUnion, setSchema, write, write, writeArray, writeBytes, writeEnum, writeField, writeFixed, writeRecord, writeString, writeString, writeWithoutConversion
      • Methods inherited from class java.lang.Object

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

      • MapOrderPreservingGenericDatumWriter

        public MapOrderPreservingGenericDatumWriter​(org.apache.avro.Schema schema)
    • Method Detail

      • writeMap

        protected void writeMap​(org.apache.avro.Schema schema,
                                java.lang.Object datum,
                                org.apache.avro.io.Encoder out)
                         throws java.io.IOException
        Overrides:
        writeMap in class org.apache.avro.generic.GenericDatumWriter<T>
        Throws:
        java.io.IOException