@InterfaceAudience.Public @InterfaceStability.Stable public class MapWritable extends AbstractMapWritable implements Map<Writable,Writable>
| Constructor and Description | 
|---|
| MapWritable()Default constructor. | 
| MapWritable(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 obj) | 
| 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)Deserialize the fields of this object from  in. | 
| Writable | remove(Object key) | 
| int | size() | 
| String | toString() | 
| Collection<Writable> | values() | 
| void | write(DataOutput out)Serialize the fields of this object to  out. | 
addToMap, copy, getClass, getConf, getId, setConfclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic MapWritable()
public MapWritable(MapWritable other)
other - the map to copy frompublic boolean containsKey(Object key)
containsKey in interface Map<Writable,Writable>public boolean containsValue(Object value)
containsValue in interface Map<Writable,Writable>public boolean equals(Object obj)
public int hashCode()
public Collection<Writable> values()
public void write(DataOutput out) throws IOException
Writableout.write in interface Writablewrite in class AbstractMapWritableout - DataOuput to serialize this object into.IOException - any other problem for write.public void readFields(DataInput in) throws 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.IOException - any other problem for readFields.Copyright © 2023 Apache Software Foundation. All rights reserved.