Apache Pig - Bag & Tuple Functions


Advertisements

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.

Advertisements