Class ColumnCount
java.lang.Object
org.apache.hadoop.hbase.regionserver.querymatcher.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.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionColumnCount
(byte[] column) ConstructorColumnCount
(byte[] column, int count) ConstructorColumnCount
(byte[] column, int offset, int length, int count) Constuctor -
Method Summary
Modifier and TypeMethodDescriptionint
Decrement the current version countbyte[]
Returns the bufferint
Returns the lengthint
Returns the offsetint
Increment the current version countvoid
setCount
(int count) Set the current count to a new count
-
Field Details
-
bytes
-
offset
-
length
-
count
-
-
Constructor Details
-
ColumnCount
Constructor- Parameters:
column
- the qualifier to count the versions for
-
ColumnCount
Constructor- Parameters:
column
- the qualifier to count the versions forcount
- initial count
-
ColumnCount
Constuctor- Parameters:
column
- the qualifier to count the versions foroffset
- in the passed buffer where to start the qualifier fromlength
- of the qualifiercount
- initial count
-
-
Method Details
-
getBuffer
Returns the buffer -
getOffset
Returns the offset -
getLength
Returns the length -
decrement
Decrement the current version count- Returns:
- current count
-
increment
Increment the current version count- Returns:
- current count
-
setCount
Set the current count to a new count- Parameters:
count
- new count to set
-