[ 
https://issues.apache.org/jira/browse/HBASE-8034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13601361#comment-13601361
 ] 

Nick Dimiduk commented on HBASE-8034:
-------------------------------------

{noformat}
--- hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
+++ hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
@@ -319,6 +319,11 @@ public class HFile {
      * HFile V2.
      */
     void addDeleteFamilyBloomFilter(BloomFilterWriter bfw) throws IOException;
+
+    /**
+     * @return Currently written raw data size on disk.
+     */
+    long getCurrentSize() throws IOException;
   }
{noformat}

nit: "\@return Currently written raw data size on disk *or -1.*"

Otherwise, ship it!
                
> record on-disk data size for store file and make it available during writing
> ----------------------------------------------------------------------------
>
>                 Key: HBASE-8034
>                 URL: https://issues.apache.org/jira/browse/HBASE-8034
>             Project: HBase
>          Issue Type: Task
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>            Priority: Minor
>         Attachments: HBASE-8034-v0.patch, HBASE-8034-v1.patch, 
> HBASE-8034-v2.patch
>
>
> To better estimate the size of data in the file, and to be able to split 
> files intelligently during any multi-file compactor like stripe or level.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to