ramkrish86 commented on a change in pull request #2747:
URL: https://github.com/apache/hbase/pull/2747#discussion_r541902443



##########
File path: 
hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferKeyOnlyKeyValue.java
##########
@@ -292,4 +287,49 @@ public long heapSize() {
     }
     return ClassSize.align(FIXED_OVERHEAD);
   }
+
+  @Override
+  public int getFamilyLengthPosition(int rowLen) {

Review comment:
       I thought of this static utility class . So something like moving this 
entire code into a Util class? 
   >>For instance, what if a Cell implementation had data members that cached 
all lengths.
   This we did not do and always we restrain from doing this because say if we 
add those cells to memstore most of the size will go for the cell overhead. Say 
in a 128M flush may be 80M only is data remaining may become only overhead. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to