openinx commented on a change in pull request #268: HBASE-22491 Separate the 
heap HFileBlock and offheap HFileBlock because the heap block won't need refCnt 
and save into prevBlocks list before shipping
URL: https://github.com/apache/hbase/pull/268#discussion_r292783413
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java
 ##########
 @@ -763,7 +738,7 @@ public long heapSize() {
   /**
    * @return true to indicate the block is allocated from JVM heap, otherwise 
from off-heap.
    */
-  boolean isOnHeap() {
+  public boolean isOnHeap() {
     return buf.hasArray();
 
 Review comment:
   OK, let me create two classes: one named ExclusiveMemHFileBlock , the other 
one is SharedMemHFileBlock,  will be easy to see the difference between those 
two kinds of blocks.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to