Configurable, WritableMapWritable, SortedMapWritable@Public @Stable public abstract class AbstractMapWritable extends java.lang.Object implements Writable, Configurable
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractMapWritable() |
constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addToMap(java.lang.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 java.lang.Class<?> |
getClass(byte id) |
the Class class for the specified id.
|
Configuration |
getConf() |
Return the configuration used by this object.
|
protected byte |
getId(java.lang.Class<?> clazz) |
get id.
|
void |
readFields(java.io.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(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
protected void addToMap(java.lang.Class<?> clazz)
clazz - clazz.protected java.lang.Class<?> getClass(byte id)
id - id.protected byte getId(java.lang.Class<?> clazz)
clazz - clazz.protected void copy(Writable other)
other - other.public Configuration getConf()
ConfigurablegetConf in interface Configurablepublic void setConf(Configuration conf)
ConfigurablesetConf in interface Configurableconf - the conf to setpublic void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.public void readFields(java.io.DataInput in)
throws java.io.IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.java.io.IOException - any other problem for readFields.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.