Class MapOrderPreservingGenericDatumWriter<T>
java.lang.Object
org.apache.avro.generic.GenericDatumWriter<T>
com.linkedin.davinci.serializer.avro.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.-
Constructor Summary
-
Method Summary
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
-
Constructor Details
-
MapOrderPreservingGenericDatumWriter
public MapOrderPreservingGenericDatumWriter(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 classorg.apache.avro.generic.GenericDatumWriter<T>
- Throws:
IOException
-