Skip to content

Instantly share code, notes, and snippets.

@shrijeet
Created September 18, 2013 01:55
Show Gist options
  • Save shrijeet/6603446 to your computer and use it in GitHub Desktop.
Save shrijeet/6603446 to your computer and use it in GitHub Desktop.
KeyValue size
+ 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