Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain bagtostring in pig?



Explain bagtostring in pig?..

Answer / Sulekha

"bagtostring" in Apache Pig is a built-in function that converts a Bag into a String. A Bag represents an ordered collection of tuples, but the elements cannot be accessed individually like in other collections such as Tuple, Map, and List.nnExample usage:n`bags = FOREACH input_data GENERATE bag(col1, col2); strings = FOREACH bags GENERATE bagtostring(bags) AS string_output;`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Pig Interview Questions

What is the function of UNION and SPLIT operators? Give examples?

0 Answers  


How will you merge the contents of two or more relations and divide a single relation into two or more relations?

1 Answers  


How does the Pig platform handle relational systems data?

1 Answers  


List the relational operators in pig.

1 Answers  


Tell me about the execution modes of Apache Pig?

1 Answers  


What is the purpose of ‘dump’ keyword in Pig?

1 Answers  


Explain about the execution plans of a Pig Script? Or Differentiate between the logical and physical plan of an Apache Pig script?

1 Answers  


How to use 'foreach' operation in pig scripts?

1 Answers  


How to restrict the number of lines to be printed in pig ?

1 Answers  


Can you join multiple fields in apache pig scripts?

1 Answers  


How does pig work?

1 Answers  


What is BloomMapFile?

1 Answers  


Categories