Re: Custom splitter

2020-07-17 Thread Claus Ibsen
java code you can make into a util class and have an unit test is a great solution - that anybody can understand and maintain. On Thu, Jul 9, 2020 at 5:26 PM Ron Cecchini wrote: > > Hi, all. Since the list is quiet I thought I'd run something by you. > > I wrote a custom splitt

Custom splitter

2020-07-09 Thread Ron Cecchini
Hi, all. Since the list is quiet I thought I'd run something by you. I wrote a custom splitter that's working just fine, so I really don't need any help. But I was curious if I could have done things simpler with some combination of split(), tokenize() and Simple, etc.?

Re: Writing Custom Splitter for large File

2019-04-23 Thread Darius Cooper
t;file://c:/temp/camel/in") >> > >> > > > .split().tokenize("\n").streaming() >> > >> > > > .process(new CorrelationComputer()) >> > >> > > > >> > >> > > >

Re: Writing Custom Splitter for large File

2019-04-22 Thread Darius Cooper
egatedRecords"); > > >> > > > > > >> > > > Where: > > >> > > > - CorrelationComputer, save the key field to a property; and, > > >> > > > - RecordAggregator is just a concrete extension > > >> >

Re: Writing Custom Splitter for large File

2019-04-22 Thread Michael Joyner
t; > > - RecordAggregator is just a concrete extension > >> > > > of AbstractListAggregationStrategy > >> > > > > >> > > > My question is: How not to use completionTimeout at all, and > simply > >> > > > complete whenever the key chang

Re: Writing Custom Splitter for large File

2019-04-22 Thread Darius Cooper
ing PreCompletionAwareAggregationStrategy, but that >> didn't >> > > > work. >> > > > Maybe I need to re-read Chapter-5 of the Camel book. >> > > > Any quick tips would be appreciated. >> > > > >> > > > >> >

Re: Writing Custom Splitter for large File

2019-04-21 Thread Darius Cooper
r > > > > > aggregator group them based on that key. You typically specify that > > > key to > > > > > the aggregator so it can create your groups for you. I believe > that is > > > > > exactly what the aggregator is intended for. > &

Re: Writing Custom Splitter for large File

2019-04-21 Thread Claus Ibsen
t; > > > the aggregator so it can create your groups for you. I believe that is > > > > exactly what the aggregator is intended for. > > > > > > > > Also, you would be surprised how well Camel works with large CSV > > files. I > > > > am up

Re: Writing Custom Splitter for large File

2019-04-21 Thread Darius Cooper
rprised how well Camel works with large CSV > files. I > > > am up to 500MB. > > > > > > Thanks! > > > > > > On Sat, Apr 20, 2019 at 6:39 AM Darius Cooper > > > wrote: > > > > > > > My Requirement: > > > >

Re: Writing Custom Splitter for large File

2019-04-21 Thread Claus Ibsen
> wrote: > > > > > My Requirement: > > > - Large mainframe file, with end-of-line fore each record > > > - But, need to split into groups of records, based on the value in a > > > certain range of bytes (it is the key that connects records) > > &g

Re: Writing Custom Splitter for large File

2019-04-21 Thread Darius Cooper
file, with end-of-line fore each record > > - But, need to split into groups of records, based on the value in a > > certain range of bytes (it is the key that connects records) > > - Groups of such related records are always contiguous > > > > So, > > - I assu

Re: Writing Custom Splitter for large File

2019-04-20 Thread Michael Joyner
nge of bytes (it is the key that connects records) > - Groups of such related records are always contiguous > > So, > - I assume one has to write a custom splitter for this? part of the > requirement is not to read the whole file into memory. > - Or, can a mix of out-of-box spl

Writing Custom Splitter for large File

2019-04-20 Thread Darius Cooper
custom splitter for this? part of the requirement is not to read the whole file into memory. - Or, can a mix of out-of-box splitter (using end-of-line), and aggregator...looking for matching keys... do the job If a custom splitter would work best, is there a good example in Camel code, or Camel Example

Re: ftp multiple streams in body => custom splitter

2015-11-27 Thread rwijngaa
-body-custom-splitter-tp5774343p5774477.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ftp multiple streams in body => custom splitter

2015-11-26 Thread Claus Ibsen
n context: > http://camel.465427.n5.nabble.com/ftp-multiple-streams-in-body-custom-splitter-tp5774343p5774445.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: ftp multiple streams in body => custom splitter

2015-11-26 Thread rwijngaa
never mind, i got it -- View this message in context: http://camel.465427.n5.nabble.com/ftp-multiple-streams-in-body-custom-splitter-tp5774343p5774445.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: AW: Camel Custom Splitter Question

2014-08-21 Thread mattmadhavan
advance! Matt'M - Thanks Matt G. Madhavan -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Custom-Splitter-Question-tp5755453p5755501.html Sent from the Camel - Users mailing list archive at Nabble.com.

AW: Camel Custom Splitter Question

2014-08-20 Thread jhm
s strategyRef option on the splitter, but I havent it found as fast as this ;) Jan > -Ursprüngliche Nachricht- > Von: mattmadhavan [mailto:mattmadha...@yahoo.com] > Gesendet: Mittwoch, 20. August 2014 23:52 > An: users@camel.apache.org > Betreff: Camel Custom Splitter Quest

Camel Custom Splitter Question

2014-08-20 Thread mattmadhavan
Hello, I want to able be able to write a custom splitter such that: 1) A message with collection is broken down into individual message(exchange) 2) Based on the content of the message add a Message header. 3) Aggregate the split messages using the message header as the strategy. The only way