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
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.?
t;file://c:/temp/camel/in")
>> > >> > > > .split().tokenize("\n").streaming()
>> > >> > > > .process(new CorrelationComputer())
>> > >> > > >
>> > >> > > >
egatedRecords");
> > >> > > >
> > >> > > > Where:
> > >> > > > - CorrelationComputer, save the key field to a property; and,
> > >> > > > - RecordAggregator is just a concrete extension
> > >> >
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
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.
>> > > >
>> > > >
>> >
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.
> &
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
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:
> > > >
> 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
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
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
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
-body-custom-splitter-tp5774343p5774477.html
Sent from the Camel - Users mailing list archive at Nabble.com.
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
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.
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.
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
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
19 matches
Mail list logo