@InterfaceAudience.Private public class ColumnCount extends Object
NOT thread-safe because it is not used in a multi-threaded context, yet.
Constructor and Description |
---|
ColumnCount(byte[] column)
Constructor
|
ColumnCount(byte[] column,
int count)
Constructor
|
ColumnCount(byte[] column,
int offset,
int length,
int count)
Constuctor
|
Modifier and Type | Method and Description |
---|---|
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
|
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 countpublic byte[] getBuffer()
public int getOffset()
public int getLength()
public int decrement()
public int increment()
public void setCount(int count)
count
- new count to set