public class LinkedMapWritable extends MapWritable
MapWritable expect that it uses a LinkedHashMap underneath to preserve insertion order (and thus its structure). Extends MapWritable for compatibility reasons.| Constructor and Description |
|---|
LinkedMapWritable()
Default constructor.
|
LinkedMapWritable(MapWritable other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<Writable,Writable>> |
entrySet() |
boolean |
equals(Object o) |
Writable |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<Writable> |
keySet() |
Writable |
put(Writable key,
Writable value) |
void |
putAll(Map<? extends Writable,? extends Writable> t) |
void |
readFields(DataInput in) |
Writable |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<Writable> |
values() |
void |
write(DataOutput out) |
addToMap, copy, getClass, getConf, getId, setConfclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic LinkedMapWritable()
public LinkedMapWritable(MapWritable other)
other - the map to copy frompublic void clear()
public boolean containsKey(Object key)
containsKey in interface Map<Writable,Writable>containsKey in class MapWritablepublic boolean containsValue(Object value)
containsValue in interface Map<Writable,Writable>containsValue in class MapWritablepublic boolean isEmpty()
public int size()
public Collection<Writable> values()
public void write(DataOutput out) throws IOException
write in interface Writablewrite in class MapWritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface WritablereadFields in class MapWritableIOExceptionpublic boolean equals(Object o)
public int hashCode()
public String toString()
toString in class MapWritable