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 32BCB11F4F for ; Wed, 25 Jun 2014 13:22:49 +0000 (UTC) Received: (qmail 94467 invoked by uid 500); 25 Jun 2014 13:22:48 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 94443 invoked by uid 500); 25 Jun 2014 13:22:48 -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 94434 invoked by uid 99); 25 Jun 2014 13:22:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2014 13:22:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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, 25 Jun 2014 13:22:50 +0000 Received: (qmail 92143 invoked by uid 99); 25 Jun 2014 13:22:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2014 13:22:24 +0000 Date: Wed, 25 Jun 2014 13:22:24 +0000 (UTC) From: "Timo Walther (JIRA)" To: issues@flink.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLINK-970) Implement a first(n) operator 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-970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timo Walther updated FLINK-970: ------------------------------- Assignee: (was: Timo Walther) > Implement a first(n) operator > ----------------------------- > > Key: FLINK-970 > URL: https://issues.apache.org/jira/browse/FLINK-970 > Project: Flink > Issue Type: New Feature > Reporter: Timo Walther > Priority: Minor > > It is only syntactic sugar, but I had many cases where I just needed the first element or the first 2 elements in a GroupReduce. > E.g. Instead of > {code:java} > .reduceGroup(new GroupReduceFunction() { > @Override > public void reduce(Iterator values, Collector out) throws Exception { > out.collect(values.next()); > } > }) > {code} > {code:java} > .first() > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)