Class MapOrderPreservingDatumReader<T>

java.lang.Object
org.apache.avro.generic.GenericDatumReader<T>
com.linkedin.davinci.serializer.avro.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

    Modifier and Type
    Method
    Description
    protected Object
    newMap(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 Details

    • MapOrderPreservingDatumReader

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

    • newMap

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