public class InUDF
extends org.apache.pig.FilterFunc
define In datafu.pig.util.InUDF();
-- cars: (alice, red), (bob, blue), (charlie, green), (dave, red);
cars = LOAD cars AS (owner:chararray, color:chararray);
-- cars: (alice, red), (bob, blue), (dave, red);
red_blue_cars = FILTER cars BY In(color, 'red', 'blue');
Constructor and Description |
---|
InUDF() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
exec(org.apache.pig.data.Tuple input) |
allowCompileTimeCalculation, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn