Class MapOrderPreservingDatumReader<T>

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

    public class MapOrderPreservingDatumReader<T>
    extends org.apache.avro.generic.GenericDatumReader<T>
    MapOrderPreservingDatumReader converts map type serialized items into instances with a consistent ordering of entries.
    • Constructor Summary

      Constructors 
      Constructor Description
      MapOrderPreservingDatumReader​(org.apache.avro.Schema writer, org.apache.avro.Schema reader)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object newMap​(java.lang.Object old, int size)  
      • Methods inherited from class org.apache.avro.generic.GenericDatumReader

        addToArray, addToMap, convert, createBytes, createEnum, createFixed, createFixed, createString, findStringClass, getData, getExpected, getResolver, getSchema, newArray, newInstanceFromString, newRecord, peekArray, read, read, readArray, readBytes, readBytes, readEnum, readField, readFixed, readInt, readMap, readMapKey, readRecord, readString, readString, readWithConversion, readWithoutConversion, setExpected, setSchema, skip
      • Methods inherited from class java.lang.Object

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

      • MapOrderPreservingDatumReader

        public MapOrderPreservingDatumReader​(org.apache.avro.Schema writer,
                                             org.apache.avro.Schema reader)
    • Method Detail

      • newMap

        protected java.lang.Object newMap​(java.lang.Object old,
                                          int size)
        Overrides:
        newMap in class org.apache.avro.generic.GenericDatumReader<T>