hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Toshihiro Suzuki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-12602) ResultScanner should implement Iterator<Result>
Date Sun, 18 Jan 2015 14:52:34 GMT

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

Toshihiro Suzuki commented on HBASE-12602:

[~apurtell] Thank you for your co-operation :)

[~stack] Thank you for your reply. 
To implement Iterator<Result>, I have to remove "throws IOException" from next(). 
It is not good idea for compatibility.
So I tried to add hasNext() to ResultScanner like patch(master.patch).
But It always needs to pre-read result.
I think it is not good idea.
Thank you.

> ResultScanner should implement Iterator<Result>
> -----------------------------------------------
>                 Key: HBASE-12602
>                 URL: https://issues.apache.org/jira/browse/HBASE-12602
>             Project: HBase
>          Issue Type: Improvement
>          Components: Client
>            Reporter: Toshihiro Suzuki
>            Assignee: Toshihiro Suzuki
>            Priority: Minor
>         Attachments: master.patch
> Currently, we can't call hasNext() from ResultScanner directly. I think It is convenient
that ResultScanner implements Iterator.

This message was sent by Atlassian JIRA

View raw message