|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.ColumnCount
public class ColumnCount
Simple wrapper for a byte buffer and a counter. Does not copy.
NOT thread-safe because it is not used in a multi-threaded context, yet.
Constructor Summary | |
---|---|
ColumnCount(byte[] column)
Constructor |
|
ColumnCount(byte[] column,
int count)
Constructor |
|
ColumnCount(byte[] column,
int offset,
int length,
int count)
Constuctor |
Method Summary | |
---|---|
int |
decrement()
Decrement the current version count |
byte[] |
getBuffer()
|
int |
getLength()
|
int |
getOffset()
|
int |
increment()
Increment the current version count |
boolean |
needMore(int max)
Check to see if needed to fetch more versions |
void |
setCount(int count)
Set the current count to a new count |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnCount(byte[] column)
column
- the qualifier to count the versions forpublic ColumnCount(byte[] column, int count)
column
- the qualifier to count the versions forcount
- initial countpublic ColumnCount(byte[] column, int offset, int length, int count)
column
- the qualifier to count the versions foroffset
- in the passed buffer where to start the qualifier fromlength
- of the qualifiercount
- initial countMethod Detail |
---|
public byte[] getBuffer()
public int getOffset()
public int getLength()
public int decrement()
public int increment()
public void setCount(int count)
count
- new count to setpublic boolean needMore(int max)
max
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |