java.util.Map<Writable,Writable>, Configurable, Writable@Public @Stable public class MapWritable extends AbstractMapWritable implements java.util.Map<Writable,Writable>
| Constructor | Description |
|---|---|
MapWritable() |
Default constructor.
|
MapWritable(MapWritable other) |
Copy constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
|
boolean |
containsKey(java.lang.Object key) |
|
boolean |
containsValue(java.lang.Object value) |
|
java.util.Set<java.util.Map.Entry<Writable,Writable>> |
entrySet() |
|
boolean |
equals(java.lang.Object obj) |
|
Writable |
get(java.lang.Object key) |
|
int |
hashCode() |
|
boolean |
isEmpty() |
|
java.util.Set<Writable> |
keySet() |
|
Writable |
put(Writable key,
Writable value) |
|
void |
putAll(java.util.Map<? extends Writable,? extends Writable> t) |
|
void |
readFields(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
Writable |
remove(java.lang.Object key) |
|
int |
size() |
|
java.lang.String |
toString() |
|
java.util.Collection<Writable> |
values() |
|
void |
write(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
addToMap, copy, getClass, getConf, getId, setConfpublic MapWritable()
public MapWritable(MapWritable other)
other - the map to copy frompublic boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public boolean equals(java.lang.Object obj)
public Writable get(java.lang.Object key)
public int hashCode()
public boolean isEmpty()
public java.util.Set<Writable> keySet()
public Writable remove(java.lang.Object key)
public java.util.Collection<Writable> values()
public void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.write in interface Writablewrite in class AbstractMapWritableout - DataOuput to serialize this object into.java.io.IOException - any other problem for write.public void readFields(java.io.DataInput in)
throws java.io.IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface WritablereadFields in class AbstractMapWritablein - DataInput to deseriablize this object from.java.io.IOException - any other problem for readFields.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.