Class SizeCachedKeyValue

java.lang.Object
org.apache.hadoop.hbase.KeyValue
org.apache.hadoop.hbase.SizeCachedKeyValue
All Implemented Interfaces:
Cloneable, Cell, ExtendedCell, HeapSize, RawCell
Direct Known Subclasses:
SizeCachedNoTagsKeyValue

@Private public class SizeCachedKeyValue extends KeyValue
This class is an extension to KeyValue where rowLen and keyLen are cached. Parsing the backing byte[] every time to get these values will affect the performance. In read path, we tend to read these values many times in Comparator, SQM etc. Note: Please do not use these objects in write path as it will increase the heap space usage. See https://issues.apache.org/jira/browse/HBASE-13448