Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A1E961056B for ; Thu, 26 Dec 2013 11:12:39 +0000 (UTC) Received: (qmail 82646 invoked by uid 500); 26 Dec 2013 11:12:07 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 82571 invoked by uid 500); 26 Dec 2013 11:12:02 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 82434 invoked by uid 500); 26 Dec 2013 11:11:57 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 82401 invoked by uid 99); 26 Dec 2013 11:11:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Dec 2013 11:11:50 +0000 Date: Thu, 26 Dec 2013 11:11:50 +0000 (UTC) From: "Chao Shi (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CRUNCH-315) Empty collection 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/CRUNCH-315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13856825#comment-13856825 ] Chao Shi commented on CRUNCH-315: --------------------------------- A step further from empty PCollection: we can also add in-memory PCollection. A user can construct a small PCollection simply providing a java.util.Collection. I don't know if this is useful. Just write down here for completeness. > Empty collection > ---------------- > > Key: CRUNCH-315 > URL: https://issues.apache.org/jira/browse/CRUNCH-315 > Project: Crunch > Issue Type: New Feature > Reporter: Chao Shi > > As discussed in the mailing list [1] and [2], I'd like to add an empty collection feature. On the API side, I think we can add a new method in Pipeline to create an empty collection. The collection should be a subclass of PCollection and behaves like other normal PCollecitons. There are also some optimization points that Josh mentioned in [2]. > I haven't thought it clearly. Just put a ticket here and see if anyone else has a better idea. > [1] http://mail-archives.apache.org/mod_mbox/crunch-dev/201312.mbox/%3CBLU0-SMTP1337A04FAC6B5F497F7473EADC10%40phx.gbl%3E > [2] http://mail-archives.apache.org/mod_mbox/crunch-dev/201312.mbox/%3CCAH29n6MbSK9gapoC2DgVnhofjAobyasCuZh_0475DuSajV%3DCPg%40mail.gmail.com%3E -- This message was sent by Atlassian JIRA (v6.1.5#6160)