GeekInterview.com
Series: Subject: Topic:
Question: 11 of 236

Using Partition components

i having 1000 records in in0 file. i want first 250 records into out0 file, next 250 (250 to 500)records into out1 file, next 250(500 to 750) records into out2 file, last 250(750 to 1000) records into out3 file using partition components?
Asked by: vijayv | Member Since Dec-2011 | Asked on: Feb 3rd, 2012

View all questions by vijayv   View all answers by vijayv

Showing Answers 1 - 5 of 5 Answers
Thirumala Naidu

Answered On : Feb 6th, 2012

We can use partition by expression. In PBE component we can mention

if (field<=250) 0
else if(field>250 && field<=500) 1
else if(field>500 && field<=750) 2
else 3

  
Login to rate this answer.
AKG

Answered On : Feb 6th, 2012

Use "Partition by round robin" and put BLOCK SIZE as 250.

  
Login to rate this answer.
vSudheer

Answered On : Mar 2nd, 2012

View all answers by vSudheer

You can use partition by % and say 25% for each port..
are you can use partition by range and provide the range of keys for each port

  
Login to rate this answer.
Debasmita

Answered On : Aug 21st, 2012

Use output_index in the reformat component and make count 4 for four outputs.

  
Login to rate this answer.
shan

Answered On : Oct 11th, 2012

Partition by expression:next_by_sequence = 250

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.