Apache Pig Tutorial on Apache Pig Bag & Tuple Functions

given below is the list of bag and tuple functions.

s.n. function & description
1 tobag()

to convert two or more expressions into a bag.

2 top()

to get the top n tuples of a relation.

3 totuple()

to convert one or more expressions into a tuple.

4 tomap()

to convert the key-value pairs into a map.