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) |
public 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 MapWritable
public boolean containsValue(Object value)
containsValue
in interface Map<Writable,Writable>
containsValue
in class MapWritable
public boolean isEmpty()
public int size()
public Collection<Writable> values()
public void write(DataOutput out) throws IOException
write
in interface Writable
write
in class MapWritable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
readFields
in class MapWritable
IOException
public boolean equals(Object o)
public int hashCode()