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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionColumnCount(byte[] column) ConstructorColumnCount(byte[] column, int count) ConstructorColumnCount(byte[] column, int offset, int length, int count) Constuctor
- 
Method SummaryModifier and TypeMethodDescriptionintDecrement the current version countbyte[]Returns the bufferintReturns the lengthintReturns the offsetintIncrement the current version countvoidsetCount(int count) Set the current count to a new count
- 
Field Details- 
bytes
- 
offset
- 
length
- 
count
 
- 
- 
Constructor Details- 
ColumnCountConstructor- Parameters:
- column- the qualifier to count the versions for
 
- 
ColumnCountConstructor- Parameters:
- column- the qualifier to count the versions for
- count- initial count
 
- 
ColumnCountConstuctor- Parameters:
- column- the qualifier to count the versions for
- offset- in the passed buffer where to start the qualifier from
- length- of the qualifier
- count- initial count
 
 
- 
- 
Method Details- 
getBufferReturns the buffer
- 
getOffsetReturns the offset
- 
getLengthReturns the length
- 
decrementDecrement the current version count- Returns:
- current count
 
- 
incrementIncrement the current version count- Returns:
- current count
 
- 
setCountSet the current count to a new count- Parameters:
- count- new count to set
 
 
-