|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.io.HbaseMapWritable<K,V>
public class HbaseMapWritable<K,V>
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. Keys are always byte arrays. Thats other
difference from MapWritable.
TODO: Have generics enforce V is a subclass of Writable and K is a byte []
only.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
HbaseMapWritable()
|
Method Summary | |
---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<byte[],V>> |
entrySet()
|
V |
get(Object key)
|
protected Class<?> |
getClass(byte id)
|
org.apache.hadoop.conf.Configuration |
getConf()
|
protected byte |
getId(Class<?> clazz)
|
boolean |
isEmpty()
|
Set<byte[]> |
keySet()
|
V |
put(byte[] key,
V value)
|
void |
putAll(Map<? extends byte[],? extends V> m)
|
void |
readFields(DataInput in)
|
V |
remove(Object key)
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
int |
size()
|
String |
toString()
|
Collection<V> |
values()
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public HbaseMapWritable()
Method Detail |
---|
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
conf
- the conf to setpublic void clear()
clear
in interface Map<byte[],V>
public boolean containsKey(Object key)
containsKey
in interface Map<byte[],V>
public boolean containsValue(Object value)
containsValue
in interface Map<byte[],V>
public Set<Map.Entry<byte[],V>> entrySet()
entrySet
in interface Map<byte[],V>
public V get(Object key)
get
in interface Map<byte[],V>
public boolean isEmpty()
isEmpty
in interface Map<byte[],V>
public Set<byte[]> keySet()
keySet
in interface Map<byte[],V>
public int size()
size
in interface Map<byte[],V>
public Collection<V> values()
values
in interface Map<byte[],V>
protected Class<?> getClass(byte id)
protected byte getId(Class<?> clazz)
public String toString()
toString
in class Object
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void putAll(Map<? extends byte[],? extends V> m)
putAll
in interface Map<byte[],V>
public V remove(Object key)
remove
in interface Map<byte[],V>
public V put(byte[] key, V value)
put
in interface Map<byte[],V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |