What are Map in pig?

0 votes

Hi,

Can any one explain the function of Map in pig?

May 7 in Big Data Hadoop by sana
16 views

1 answer to this question.

0 votes

Hey,

Map comes under the data mode in pig. It is the collection or set of key value pair.Image result for pig map image exampleHere the texts before the # are keys and texts after the # are values. In pig # is the delimiter that represents the difference in key and value pair. So, every row is a Map which has a set of key value pairs. However a Map cannot contain duplicate pairs.

For example;- [Band# Linkin Park, Member# 7, Origin# California]

Here to represent a Map you need to use the square brackets.

answered May 7 by Gitika
• 25,340 points

Related Questions In Big Data Hadoop

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
24 views
0 votes
1 answer

What are Diagnostic operator in pig?

Hey, In Apache pig, the LOAD statement will ...READ MORE

answered May 6 in Big Data Hadoop by Gitika
• 25,340 points

edited May 7 by Gitika 19 views
0 votes
1 answer

What are SUCCESS and part-r-00000 files in Hadoop?

Yes, both the files i.e. SUCCESS and ...READ MORE

answered Apr 12, 2018 in Big Data Hadoop by nitinrawat895
• 10,670 points
2,406 views
0 votes
1 answer

What are the problems in creating volume in mapr hadoop?

It sounds like the user you are ...READ MORE

answered Aug 21, 2018 in Big Data Hadoop by Frankie
• 9,810 points
54 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
203 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,670 points
2,959 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,670 points
330 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
14,662 views
0 votes
1 answer

What are the components in Pig

Hi, Yes, this is absolutely correct that pig ...READ MORE

answered Apr 26 in Big Data Hadoop by Gitika
• 25,340 points
124 views
0 votes
1 answer

What are the relational operators available related to loading and storing in pig language?

Hey, For loading data and storing it into ...READ MORE

answered May 3 in Big Data Hadoop by Gitika
• 25,340 points
35 views