Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2DCD10E92 for ; Sun, 18 Jan 2015 14:52:32 +0000 (UTC) Received: (qmail 60033 invoked by uid 500); 18 Jan 2015 14:52:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 59974 invoked by uid 500); 18 Jan 2015 14:52:34 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 59962 invoked by uid 99); 18 Jan 2015 14:52:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jan 2015 14:52:34 +0000 Date: Sun, 18 Jan 2015 14:52:34 +0000 (UTC) From: "Toshihiro Suzuki (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-12602) ResultScanner should implement Iterator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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, 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 > ----------------------------------------------- > > 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 (v6.3.4#6332)