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 7BE821082C for ; Wed, 19 Feb 2014 23:50:30 +0000 (UTC) Received: (qmail 93204 invoked by uid 500); 19 Feb 2014 23:50:29 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 93171 invoked by uid 500); 19 Feb 2014 23:50:29 -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 93163 invoked by uid 99); 19 Feb 2014 23:50:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Feb 2014 23:50:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jwills@cloudera.com designates 209.85.216.177 as permitted sender) Received: from [209.85.216.177] (HELO mail-qc0-f177.google.com) (209.85.216.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Feb 2014 23:50:25 +0000 Received: by mail-qc0-f177.google.com with SMTP id i8so1987821qcq.8 for ; Wed, 19 Feb 2014 15:50:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=pRMSdlQKJ7PYiaST9rmR0MrxrjYEcEknfwORf8B/Wmo=; b=WTPJv/EySdd7hQweLDuePXvubl28Wxkqbbzhyxn9/xtHnpweco1JU1LmT7wnLuwzKi 23652OJNpOURlN/rDoc5Hdfhpd0TctzWPtwtnqoEtxh0B40VCvNmdAhLgDpo9EACnhbC oZSMj5UpccDaWbzAGsNjJIXiUenBsUBDkhnp/8RR1OJv9pz+PoLCD2MdUjGLdK8tCNZM ySUVJtoxx3gJdOCd0MlrRl/yOiM3xNAYMMoQDqy5awfS0E7WSXsSpHgKRDwM0AZfcrHZ Iv6CcnTaBZSQEkzyAU2ZoBXFbJQED9q6sV5ywFeRYKWuKnBu/D+W9TC45birtgunUHhe hvJQ== X-Gm-Message-State: ALoCoQnLjSevAoCeKHT/S095dlWgiDFgZvlM/pGi78iHkC5Xx+jMNI8UImD1E3Jl0gXz7/31DoHf X-Received: by 10.140.89.71 with SMTP id u65mr5403643qgd.93.1392853804568; Wed, 19 Feb 2014 15:50:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.172.202 with HTTP; Wed, 19 Feb 2014 15:49:44 -0800 (PST) In-Reply-To: References: From: Josh Wills Date: Wed, 19 Feb 2014 15:49:44 -0800 Message-ID: Subject: Re: Generic class for converting PCollection to PTable To: dev Content-Type: multipart/alternative; boundary=001a11c1390a3effa604f2cb0cbf X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1390a3effa604f2cb0cbf Content-Type: text/plain; charset=ISO-8859-1 org.apache.crunch.lib.PTables.asPTable is likely what you want. On Wed, Feb 19, 2014 at 3:47 PM, Jinal Shah wrote: > Hi everyone, > > Is there a generic way of converting PCollection to PTable? If not, Can we > create a generic class? Because we are having lot of places where we want > to perform a join on 2 PCollections so we have to convert it into PTables > and then do a join and then convert it into a PCollection. So i was > wondering is there a better way of doing this. > > Thanks > -- Director of Data Science Cloudera Twitter: @josh_wills --001a11c1390a3effa604f2cb0cbf--