What do you understand by an inner bag and outer bag in Pig?

0 votes
Can you help me with this differentiation?
Feb 21 in Big Data Hadoop by Neha
• 6,280 points
90 views

1 answer to this question.

0 votes

Outer bag or relation is nothing but a bag of tuples. Here relations are similar as relations in relational databases. For example:

{(Linkin Park, California), (Metallica, Los Angeles), (Mega Death, Los Angeles)}

An inner bag contains a bag inside a tuple. For Example:

(Los Angeles, {(Metallica, Los Angeles), (Mega Death, Los Angeles)})

(California, {(Linkin Park, California)})

answered Feb 21 by Frankie
• 9,810 points

Related Questions In Big Data Hadoop

0 votes
1 answer

What do you mean by Bag in Pig?

Hey, Bag in Apache Pig is nothing but ...READ MORE

answered May 3 in Big Data Hadoop by Gitika
• 25,300 points
18 views
0 votes
1 answer

What do you understand by Filters in Hbase?

 Hey, Basically,  by allowing users to add limiting ...READ MORE

answered May 22 in Big Data Hadoop by Gitika
• 25,300 points
16 views
0 votes
1 answer

Pig: Difference between inner bag and outer bag

Outer Bag: An outer bag is nothing but ...READ MORE

answered Jul 16 in Big Data Hadoop by Firoz
16 views
0 votes
1 answer

What do we exactly mean by “Hadoop” – the definition of Hadoop?

The official definition of Apache Hadoop given ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by Shubham
173 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,490 points
2,386 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,490 points
243 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
12,163 views
0 votes
1 answer

What is Modeling data in Hadoop and how to do it?

I suggest spending some time with Apache ...READ MORE

answered Sep 19, 2018 in Big Data Hadoop by Frankie
• 9,810 points
75 views
0 votes
1 answer

What are the different relational operations in “Pig Latin” you worked with?

Different relational operators are: for each order by filt ...READ MORE

answered Dec 14, 2018 in Big Data Hadoop by Frankie
• 9,810 points
17 views