HBASE-3921 Allow adding arbitrary blobs to Put; fix accidental commit from wrong working file
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1128906 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
92845b63c4
commit
182ddeac26
|
@ -529,9 +529,9 @@ public class Put implements HeapSize, Writable, Row, Comparable<Row> {
|
|||
}
|
||||
if (attributes != null) {
|
||||
heapsize += ClassSize.align(this.attributes.size() * ClassSize.MAP_ENTRY);
|
||||
for(Map.Entry<byte [], List<KeyValue>> entry : this.familyMap.entrySet()) {
|
||||
heapsize += ClassSize.align(ClassSize.STRING + entry.getKey().length);
|
||||
heapsize += ClassSize.align(ClassSize.ARRAY + entry.getValue().size());
|
||||
for(Map.Entry<String, byte[]> entry : this.attributes.entrySet()) {
|
||||
heapsize += ClassSize.align(ClassSize.STRING + entry.getKey().length());
|
||||
heapsize += ClassSize.align(ClassSize.ARRAY + entry.getValue().length);
|
||||
}
|
||||
}
|
||||
return ClassSize.align((int)heapsize);
|
||||
|
|
Loading…
Reference in New Issue