@InterfaceAudience.Private class ColumnCount extends Object
NOT thread-safe because it is not used in a multi-threaded context, yet.
Modifier and Type | Field and Description |
---|---|
private byte[] |
bytes |
private int |
count |
private int |
length |
private int |
offset |
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
|
private final byte[] bytes
private final int offset
private final int length
private int 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 setCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.