| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.io.AbstractMapWritable
org.apache.hadoop.io.MapWritable
public class MapWritable
A Writable Map.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from interface java.util.Map | 
|---|
Map.Entry<K,V> | 
| Constructor Summary | |
|---|---|
MapWritable()
Default constructor.  | 
|
MapWritable(MapWritable other)
Copy constructor.  | 
|
| Method Summary | |
|---|---|
 void | 
clear()
 | 
 boolean | 
containsKey(Object key)
 | 
 boolean | 
containsValue(Object value)
 | 
 Set<Map.Entry<Writable,Writable>> | 
entrySet()
 | 
 Writable | 
get(Object key)
 | 
 boolean | 
isEmpty()
 | 
 Set<Writable> | 
keySet()
 | 
 Writable | 
put(Writable key,
    Writable value)
 | 
 void | 
putAll(Map<? extends Writable,? extends Writable> t)
 | 
 void | 
readFields(DataInput in)
Deserialize the fields of this object from in.  
 
 For efficiency, implementations should attempt to re-use storage in the existing object where possible.  | 
 Writable | 
remove(Object key)
 | 
 int | 
size()
 | 
 Collection<Writable> | 
values()
 | 
 void | 
write(DataOutput out)
Serialize the fields of this object to out. | 
| Methods inherited from class org.apache.hadoop.io.AbstractMapWritable | 
|---|
addToMap, copy, getClass, getConf, getId, setConf | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface java.util.Map | 
|---|
equals, hashCode | 
| Constructor Detail | 
|---|
public MapWritable()
public MapWritable(MapWritable other)
other - the map to copy from| Method Detail | 
|---|
public void clear()
clear in interface Map<Writable,Writable>public boolean containsKey(Object key)
containsKey in interface Map<Writable,Writable>public boolean containsValue(Object value)
containsValue in interface Map<Writable,Writable>public Set<Map.Entry<Writable,Writable>> entrySet()
entrySet in interface Map<Writable,Writable>public Writable get(Object key)
get in interface Map<Writable,Writable>public boolean isEmpty()
isEmpty in interface Map<Writable,Writable>public Set<Writable> keySet()
keySet in interface Map<Writable,Writable>
public Writable put(Writable key,
                    Writable value)
put in interface Map<Writable,Writable>public void putAll(Map<? extends Writable,? extends Writable> t)
putAll in interface Map<Writable,Writable>public Writable remove(Object key)
remove in interface Map<Writable,Writable>public int size()
size in interface Map<Writable,Writable>public Collection<Writable> values()
values in interface Map<Writable,Writable>
public void write(DataOutput out)
           throws IOException
out.
write in interface Writablewrite in class AbstractMapWritableout - DataOuput to serialize this object into.
IOException
public void readFields(DataInput in)
                throws IOException
in.  
 
 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.
IOException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||