|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.io.HbaseMapWritable
public class HbaseMapWritable
A Writable Map.
Like MapWritable but dumb. It will fail
if passed a Writable it has not already been told about. Its also been
primed with hbase Writables.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
HbaseMapWritable()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<Writable,Writable>> |
entrySet()
|
Writable |
get(Object key)
|
protected Class<?> |
getClass(byte id)
|
Configuration |
getConf()
Return the configuration used by this object. |
protected byte |
getId(Class<?> clazz)
|
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)
|
void |
setConf(Configuration conf)
Set the configuration to be used by this object. |
int |
size()
|
Collection<Writable> |
values()
|
void |
write(DataOutput out)
Serialize the fields of this object to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public HbaseMapWritable()
| Method Detail |
|---|
public Configuration getConf()
Configurable
getConf in interface Configurablepublic void setConf(Configuration conf)
Configurable
setConf in interface Configurableconf - the conf to setpublic void clear()
clear in interface Map<Writable,Writable>public boolean containsKey(Object key)
containsKey in interface Map<Writable,Writable>public boolean containsValue(Object value)
containsValue in interface Map<Writable,Writable>public Set<Map.Entry<Writable,Writable>> entrySet()
entrySet in interface Map<Writable,Writable>public Writable get(Object key)
get in interface Map<Writable,Writable>public boolean isEmpty()
isEmpty in interface Map<Writable,Writable>public Set<Writable> keySet()
keySet in interface Map<Writable,Writable>
public Writable put(Writable key,
Writable value)
put in interface Map<Writable,Writable>public void putAll(Map<? extends Writable,? extends Writable> t)
putAll in interface Map<Writable,Writable>public Writable remove(Object key)
remove in interface Map<Writable,Writable>public int size()
size in interface Map<Writable,Writable>public Collection<Writable> values()
values in interface Map<Writable,Writable>protected Class<?> getClass(byte id)
protected byte getId(Class<?> clazz)
public void write(DataOutput out)
throws IOException
Writableout.
write in interface Writableout - DataOuput to serialize this object into.
IOException
public void readFields(DataInput in)
throws 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.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||