public abstract class AbstractMapWritable extends Object implements Writable, Configurable
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractMapWritable()
constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addToMap(Class clazz)
Add a Class to the maps if it is not already present.
|
protected void |
copy(Writable other)
Used by child copy constructors.
|
protected Class |
getClass(byte id) |
Configuration |
getConf()
Return the configuration used by this object.
|
protected byte |
getId(Class clazz) |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
protected void addToMap(Class clazz)
protected Class getClass(byte id)
protected byte getId(Class clazz)
protected void copy(Writable other)
public Configuration getConf()
ConfigurablegetConf 在接口中 Configurablepublic void setConf(Configuration conf)
ConfigurablesetConf 在接口中 Configurableconf - the conf to setpublic void write(DataOutput out) throws IOException
out.write 在接口中 Writableout - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields 在接口中 Writablein - DataInput to deseriablize this object from.IOExceptionCopyright © 2009 The Apache Software Foundation