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...


What are the different String functions available in pig?



What are the different String functions available in pig?..

Answer / Suraj Singh Rana

In Pig, there are several string functions available. Here are some of them:n1. CONCAT("): Concatenates strings.n2. INITCAP("): Capitalizes the first letter of each word in a string.n3. LOWERCASE(") and UPPERCASE("): Convert case of a string to lowercase or uppercase respectively.n4. LENGTH("): Returns the length of a string.n5. SUBSTRING(", start, length): Extracts a substring from a given position starting for a specified length.n6. INDEXOF(", substr): Finds the position of substr in the string.n7. REPLACE(", old_substr, new_substr): Replaces all occurrences of old_substr with new_substr in the string.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Pig Interview Questions

Why should we use ‘orderby’ keyword in pig scripts?

1 Answers  


What is the use of illustrate in pig?

1 Answers  


Why should we use ‘distinct’ keyword in Pig scripts?

1 Answers  


What does illustrate do in Apache Pig?

1 Answers  


Explain the LOAD keyword in Pig script?

1 Answers  


Explain Features of Pig?

1 Answers  


Is Pig script case sensitive?

1 Answers  


I have a relation r. How can I get the top 10 tuples from the relation r?

1 Answers  


How Pig differs from MapReduce?

1 Answers  


What are the advantages of pig language?

1 Answers  


Does Pig support multi-line commands?

1 Answers  


Explain textloader function?

1 Answers  


Categories