Package org.elasticsearch.hadoop.mr
Class LinkedMapWritable
java.lang.Object
org.apache.hadoop.io.AbstractMapWritable
org.apache.hadoop.io.MapWritable
org.elasticsearch.hadoop.mr.LinkedMapWritable
- All Implemented Interfaces:
Map<Writable,,Writable> Configurable,Writable
Similar to
MapWritable expect that it uses a LinkedHashMap underneath to preserve insertion order (and thus its structure). Extends MapWritable for compatibility reasons.-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleaninthashCode()booleanisEmpty()keySet()voidvoidreadFields(DataInput in) intsize()toString()values()voidwrite(DataOutput out) Methods inherited from class org.apache.hadoop.io.AbstractMapWritable
addToMap, copy, getClass, getConf, getId, setConfMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
LinkedMapWritable
public LinkedMapWritable()Default constructor. -
LinkedMapWritable
Copy constructor.- Parameters:
other- the map to copy from
-
-
Method Details
-
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap<Writable,Writable> - Overrides:
containsKeyin classMapWritable
-
containsValue
- Specified by:
containsValuein interfaceMap<Writable,Writable> - Overrides:
containsValuein classMapWritable
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-
write
- Specified by:
writein interfaceWritable- Overrides:
writein classMapWritable- Throws:
IOException
-
readFields
- Specified by:
readFieldsin interfaceWritable- Overrides:
readFieldsin classMapWritable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classMapWritable
-