SHARE
TWEET

Untitled

a guest May 23rd, 2012 16 Never
  1. register adition.jar
  2.  
  3. a = LOAD 'TestCONTAINS-testFilteringCluster-input.txt' AS (id:int, grp:int, additional:int, referer:chararray);
  4. b = FILTER a BY com.adition.pig.filtering.string.CONTAINS(referer, 'obama') OR com.adition.pig.filtering.string.CONTAINS(referer, 'praesident');
  5.  
  6. EXPLAIN b;
  7.  
  8. dump b;
RAW Paste Data
Top