Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> FOR - EACH?


Copy link to this message
-
Re: FOR - EACH?
what about?
b = group a by ...
c = foreach b {
      generate ...
    }

On 12/2/11, Marek Miglinski <[EMAIL PROTECTED]> wrote:
> Hello guys,
>
> I have a group of users aggregated by day period, lets assume there are
> 10mill users and each user has got 1000 transactions.
>
> Now is there a way to iterate through this group NOT foreach, but foreach
> 10! records in that group? So I could safe space and count more users per
> action, export less records.
>
>
>
> Thanks,
> Marek M.
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB