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 >> in statement


Copy link to this message
-
Re: in statement
Write a UDF that takes tuples/bag as input. Then do whatever processing you
want to do with the values inside the bag/tuple. Look how COUNT/SUM UDF is
written, you will get better picture.

Thanks,
Praveenesh

On Fri, May 25, 2012 at 3:17 PM, Fabian Alenius <[EMAIL PROTECTED]>wrote:

> Hi,
>
> lets say I have a large tuple or a bag and I want to see if one of the
> fields match a string. How would one do that?
>
> Similarly how do you apply a function to all the fields in a tuple?
>
> Thanks,
>
> Fabian
>
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