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
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
-
-
-
-
Method Detail
-
newMap
protected java.lang.Object newMap(java.lang.Object old, int size)
- Overrides:
newMap
in classorg.apache.avro.generic.GenericDatumReader<T>
-
-