public class MapWritable extends AbstractMapWritable implements Map<Writable,Writable>
构造器和说明 |
---|
MapWritable()
Default constructor.
|
MapWritable(MapWritable other)
Copy constructor.
|
限定符和类型 | 方法和说明 |
---|---|
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 . |
Writable |
remove(Object key) |
int |
size() |
Collection<Writable> |
values() |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public MapWritable()
public MapWritable(MapWritable other)
other
- the map to copy frompublic boolean containsKey(Object key)
containsKey
在接口中 Map<Writable,Writable>
public boolean containsValue(Object value)
containsValue
在接口中 Map<Writable,Writable>
public void write(DataOutput out) throws IOException
out
.write
在接口中 Writable
write
在类中 AbstractMapWritable
out
- 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
在接口中 Writable
readFields
在类中 AbstractMapWritable
in
- DataInput
to deseriablize this object from.IOException
Copyright © 2009 The Apache Software Foundation