Package org.apache.avro.reflect
Class MapEntry<K,V>
java.lang.Object
org.apache.avro.reflect.MapEntry<K,V>
- Type Parameters:
K- Key of the map-entryV- Value of the map-entry
- All Implemented Interfaces:
Map.Entry<K,V>
Deprecated.
Use org.apache.avro.util.MapEntry
Class to make Avro immune from the naming variations of key/value fields
among several
Example:
Map.Entry implementations. If objects of this
class are used instead of the regular ones obtained by
Map.entrySet(), then we need not worry about the actual field-names
or any changes to them in the future.Example:
ConcurrentHashMap.MapEntry does not name the fields as key/
value in Java 1.8 while it used to do so in Java 1.7