public class SelectStringFieldByName
extends org.apache.pig.EvalFunc<java.lang.String>
Example:
define SelectStringFieldByName datafu.pig.util.SelectStringFieldByName();
-- input:
-- ("text1", "hi", "how", "are")
input = LOAD 'input' AS (fieldName:chararray, text1:chararray, text2:chararray, text3:chararray);
-- output:
-- ("hi")
outfoo = FOREACH input GENERATE SelectStringFieldByName(fieldName, *) as value;
Constructor and Description |
---|
SelectStringFieldByName() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
exec(org.apache.pig.data.Tuple input) |
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn