|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.HMemcache
public class HMemcache
The HMemcache holds in-memory modifications to the HRegion. This is really a wrapper around a TreeMap that helps us when staging the Memcache out to disk.
Constructor Summary | |
---|---|
HMemcache()
Constructor |
Method Summary | |
---|---|
void |
add(Text row,
TreeMap<Text,byte[]> columns,
long timestamp)
Store a value. |
void |
deleteSnapshot()
Delete the snapshot, remove from history. |
byte[][] |
get(HStoreKey key,
int numVersions)
Look back through all the backlog TreeMaps to find the target. |
TreeMap<Text,byte[]> |
getFull(HStoreKey key)
Return all the available columns for the given key. |
long |
getSize()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HMemcache()
Method Detail |
---|
public void deleteSnapshot() throws IOException
IOException
public void add(Text row, TreeMap<Text,byte[]> columns, long timestamp)
row
- columns
- timestamp
- public long getSize()
public byte[][] get(HStoreKey key, int numVersions)
key
- numVersions
-
public TreeMap<Text,byte[]> getFull(HStoreKey key)
key
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |