Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4BC8C10030 for ; Wed, 23 Jul 2014 10:35:00 +0000 (UTC) Received: (qmail 76247 invoked by uid 500); 23 Jul 2014 10:35:00 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 76218 invoked by uid 500); 23 Jul 2014 10:35:00 -0000 Mailing-List: contact issues-help@flink.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.incubator.apache.org Delivered-To: mailing list issues@flink.incubator.apache.org Received: (qmail 76209 invoked by uid 99); 23 Jul 2014 10:35:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 10:35:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 23 Jul 2014 10:34:59 +0000 Received: (qmail 73608 invoked by uid 99); 23 Jul 2014 10:34:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 10:34:38 +0000 Date: Wed, 23 Jul 2014 10:34:38 +0000 (UTC) From: "Stephan Ewen (JIRA)" To: issues@flink.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-1023) Provide Iterable instead of Iterator to grouped functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FLINK-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14071580#comment-14071580 ] Stephan Ewen commented on FLINK-1023: ------------------------------------- Does it make sense to have a rich object, like {{Sequence}} or so? It could implement, {{Iterator}}, {{Iterable}}, plus methods like {{materialize()}} so you could go through the sequence multiple times. It may be a bit redundant, though. Scala has tools for that already (for example to materialize iterators). > Provide Iterable instead of Iterator to grouped functions > --------------------------------------------------------- > > Key: FLINK-1023 > URL: https://issues.apache.org/jira/browse/FLINK-1023 > Project: Flink > Issue Type: Wish > Components: Java API > Reporter: Ufuk Celebi > Priority: Trivial > Labels: breaking-api > > I would like the grouped functions to provide an Iterable instead of an Iterator to the user, e.g. for the {{reduce}} method of {{GroupReduceFunction}}. > We had a discussion about this previously (I couldn't find the respective issues/list threads right now) and the result was in favor of the change. > We never got around to really push for it, because of the API break. With the renaming, it should be less of an issue. -- This message was sent by Atlassian JIRA (v6.2#6252)