Class MapOrderPreservingSpecificDatumWriter<T>

java.lang.Object
org.apache.avro.generic.GenericDatumWriter<T>
org.apache.avro.specific.SpecificDatumWriter<T>
com.linkedin.davinci.serializer.avro.MapOrderPreservingSpecificDatumWriter<T>
All Implemented Interfaces:
org.apache.avro.io.DatumWriter<T>

public class MapOrderPreservingSpecificDatumWriter<T> extends org.apache.avro.specific.SpecificDatumWriter<T>
MapOrderPreservingSpecificDatumWriter converts map type instances to in-memory serialized format with a consistent ordering of map entries.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapOrderPreservingSpecificDatumWriter(org.apache.avro.Schema schema)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    writeMap(org.apache.avro.Schema schema, Object datum, org.apache.avro.io.Encoder out)
     

    Methods inherited from class org.apache.avro.specific.SpecificDatumWriter

    getSpecificData, writeEnum, writeField, writeRecord, writeString

    Methods inherited from class org.apache.avro.generic.GenericDatumWriter

    addAvroTypeMsg, addClassCastMsg, convert, getArrayElements, getArraySize, getData, getMapEntries, getMapSize, npe, resolveUnion, setSchema, write, write, writeArray, writeBytes, writeFixed, writeString, writeWithoutConversion

    Methods inherited from class java.lang.Object

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

    • MapOrderPreservingSpecificDatumWriter

      public MapOrderPreservingSpecificDatumWriter(org.apache.avro.Schema schema)
  • Method Details

    • writeMap

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