|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.regionserver.ColumnCount
@InterfaceAudience.Private 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 |
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 for
public ColumnCount(byte[] column,
int count)
column - the qualifier to count the versions forcount - initial count
public 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 count| Method 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 set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||