hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Rodionov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HBASE-17151) New API to create HFile.Reader without instantiating block cache
Date Tue, 29 Nov 2016 22:11:58 GMT

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

Vladimir Rodionov edited comment on HBASE-17151 at 11/29/16 10:11 PM:
----------------------------------------------------------------------

v2. Added new API call to HFile to create reader w/o cache configuration instance.
{code}
  /**
  * Creates reader w/o cache being involved
  * @param fs filesystem
  * @param path Path to file to read
  * @return an active Reader instance
  * @throws IOException Will throw a CorruptHFileException (DoNotRetryIOException subtype)
if hfile is corrupt/invalid.
  */
 public static Reader createReader(
     FileSystem fs, Path path,  Configuration conf) throws IOException {
   FSDataInputStreamWrapper stream = new FSDataInputStreamWrapper(fs, path);
   return pickReaderVersion(path, stream, fs.getFileStatus(path).getLen(),
     null, stream.getHfs(), conf);
 }
{code}


was (Author: vrodionov):
v2. Added new API call to HFile to create reader w/o cache configuration instance.

> New API to create HFile.Reader without instantiating block cache 
> -----------------------------------------------------------------
>
>                 Key: HBASE-17151
>                 URL: https://issues.apache.org/jira/browse/HBASE-17151
>             Project: HBase
>          Issue Type: New Feature
>            Reporter: Vladimir Rodionov
>            Assignee: Vladimir Rodionov
>         Attachments: HBASE-17151-v1.patch, HBASE-17151-v2.patch
>
>
> Currently, to create HFile.Reader instance, the CacheConfig instance is required (which
instantiates block cache). We need API for reading HFile w/o block cache being involved.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message