This UDF takes a Map and returns a Tuple containing the value set. Note, this UDF returns only unique values. For all values, use VALUELIST instead.
grunt> cat data [open#apache,1#2,11#2] [apache#hadoop,3#4,12#hadoop] grunt> a = load 'data' as (M:[]); grunt> b = foreach a generate VALUELIST($0); ({(apache),(2)}) ({(4),(hadoop)})
Stores an editable list of name-value pairs, just like PropertySet. This class is syntactic suger. It allows constructors of the form: new ValueSet( "name0", "value0", "n1", "v1", "n2", "v2", "n3", "v3" )
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.