Package org.apache.avro.generic
Interface DeterministicMapOrderDatumWriter
-
- All Known Implementing Classes:
DeterministicMapOrderGenericDatumWriter
,DeterministicMapOrderSpecificDatumWriter
public interface DeterministicMapOrderDatumWriter
This interface provides method to write map entries in a deterministic order. By default, the "deterministic order" is the same as natural ordering of map keys.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<java.util.Map.Entry<java.lang.Object,java.lang.Object>>
COMPARATOR
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
internalWrite(org.apache.avro.Schema schema, java.lang.Object datum, org.apache.avro.io.Encoder out)
default void
writeMapWithDeterministicOrder(org.apache.avro.Schema schema, java.lang.Object datum, org.apache.avro.io.Encoder out)
-
-
-
Method Detail
-
internalWrite
void internalWrite(org.apache.avro.Schema schema, java.lang.Object datum, org.apache.avro.io.Encoder out) throws java.io.IOException
- Throws:
java.io.IOException
-
writeMapWithDeterministicOrder
default void writeMapWithDeterministicOrder(org.apache.avro.Schema schema, java.lang.Object datum, org.apache.avro.io.Encoder out) throws java.io.IOException
- Throws:
java.io.IOException
-
-