@InterfaceAudience.Public @InterfaceStability.Stable 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 AbstractMapWritable()
protected void addToMap(Class<?> clazz)
public Configuration getConf()
Configurable
getConf
インタフェース内 Configurable
public void setConf(Configuration conf)
Configurable
setConf
インタフェース内 Configurable
conf
- the conf to setpublic void write(DataOutput out) throws IOException
Writable
out
.write
インタフェース内 Writable
out
- DataOuput
to serialize this object into.IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
インタフェース内 Writable
in
- DataInput
to deseriablize this object from.IOException
Copyright © 2016 Apache Software Foundation. All rights reserved.