Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
ankit7359
Creator II
Creator II

How to count number of Vowels using Talend??????

Hi,

I m trying on a scenario where i would like to count the number of vowels in a column.

But according to my approach.....

trowgenerator ----> tmap -----> ??

How should i proceed??

Logic : - 

for eg. abcad

Number of vowels are :- 1 (a -> repeated twice)

for eg. aeiou

Number of vowels are :- 5...

Other than Routines.. how to tackle this ???

Labels (2)
1 Reply
Anonymous
Not applicable

Hi,

 

     You will have to write custom java code for your use case. You can park it either within routine or some other java component.

 

      My recommendation will be to create a routine and call it through tmap where you will be given the input string as input parameter and you will get the vowel count as output parameter of routine.

 

      Below link will help you to get simple code snippet in Java.

 

https://www.programiz.com/java-programming/examples/vowel-consonant-count-string

 

     Don't worry about the jargon and they are quite simple. Happy Programming 🙂

 

Warm Regards,

 

Nikhil Thampi