Created
September 18, 2013 01:55
-
-
Save shrijeet/6603446 to your computer and use it in GitHub Desktop.
KeyValue size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ 4 // int: Total length of the whole KeyValue. | |
+ 4 // int: Total length of the key part of the KeyValue. | |
+ 4 // int: Total length of the value part of the KeyValue. | |
+ 2 // short: Row key length. | |
+ key.length // The row key. | |
+ 1 // byte: Family length. | |
+ family.length // The family. | |
+ qualifier.length // The qualifier. | |
+ 8 // long: The timestamp. | |
+ 1 // byte: The type of KeyValue. | |
+ (value == null ? 0 : value.length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment