public class MapWritable extends AbstractMapWritable implements Map<Writable,Writable>
Map,使用方法相同,可以在com.aliyun.odps.mapreduce.Mapper 中调用
com.aliyun.odps.mapreduce.MapContext#write(Object, Object)写出。| Constructor and Description |
|---|
MapWritable()
默认构造函数。
|
MapWritable(MapWritable other)
拷贝构造函数
|
| 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)
从指定的
DataInput in 反序列化. |
Writable |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<Writable> |
values() |
void |
write(DataOutput out)
序列化到指定的
DataOutput out. |
getConf, setConfcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic MapWritable()
public MapWritable(MapWritable other)
另一个待拷贝的 - public 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
WritableDataOutput out.write in interface Writablewrite in class AbstractMapWritableIOExceptionpublic void readFields(DataInput in) throws IOException
WritableDataInput in 反序列化.readFields in interface WritablereadFields in class AbstractMapWritableIOExceptionCopyright © 2023 Alibaba Cloud Computing. All rights reserved.