public class SetUnion extends SetOperationsBase
Example:
define SetUnion datafu.pig.sets.SetUnion();
-- input:
-- ({(2,20),(3,30),(4,40)},{(1,10),(2,20),(4,40),(8,80)})
input = LOAD 'input' AS (B1:bag{T:tuple(val1:int,val2:int)},B2:bag{T:tuple(val1:int,val2:int)});
-- output:
-- ({(2,20),(3,30),(4,40),(1,10),(8,80)})
output = FOREACH input GENERATE SetUnion(B1,B2);
Constructor and Description |
---|
SetUnion() |
Modifier and Type | Method and Description |
---|---|
org.apache.pig.data.DataBag |
exec(org.apache.pig.data.Tuple input) |
outputSchema
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn