|
||||||||||
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()
|
Comparator<? super byte[]> |
comparator()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<byte[],V>> |
entrySet()
|
byte[] |
firstKey()
|
V |
get(Object key)
|
protected Class<?> |
getClass(byte id)
|
org.apache.hadoop.conf.Configuration |
getConf()
|
protected byte |
getId(Class<?> clazz)
|
SortedMap<byte[],V> |
headMap(byte[] toKey)
|
boolean |
isEmpty()
|
Set<byte[]> |
keySet()
|
byte[] |
lastKey()
|
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()
|
SortedMap<byte[],V> |
subMap(byte[] fromKey,
byte[] toKey)
|
SortedMap<byte[],V> |
tailMap(byte[] fromKey)
|
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>
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>
public Comparator<? super byte[]> comparator()
comparator
in interface SortedMap<byte[],V>
public byte[] firstKey()
firstKey
in interface SortedMap<byte[],V>
public SortedMap<byte[],V> headMap(byte[] toKey)
headMap
in interface SortedMap<byte[],V>
public byte[] lastKey()
lastKey
in interface SortedMap<byte[],V>
public SortedMap<byte[],V> subMap(byte[] fromKey, byte[] toKey)
subMap
in interface SortedMap<byte[],V>
public SortedMap<byte[],V> tailMap(byte[] fromKey)
tailMap
in interface SortedMap<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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |