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 >> Dividing a bag into smaller bags


Copy link to this message
-
Re: Dividing a bag into smaller bags
James, you would have to write a UDF for this.

On Apr 11, 2012, at 8:53 AM, James Newhaven <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I need to divide a large bag into 10 smaller bags of equal size. Does
> anyone know of a function that can do this easily? I've had a look at the
> standard functions and the PiggyBank and can't find anything appropriate.
>
> Thanks,
> James
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