Well, if you need to just preserve the order of received (event) tuples
then why not use trident instead? Trident ensures correct ordering
(chronologically) as well as exactly once processing without any gimmicks;
sorting it secondary to the event generation sounds like you will enter
into quite a bit of hassle for no reason.

Regards.

Kindly yours,

Andrew Grammenos

-- PGP PKey --
​ <https://www.dropbox.com/s/2kcxe59zsi9nrdt/pgpsig.txt>
https://www.dropbox.com/s/yxvycjvlsc111bh/pgpsig.txt
<https://www.dropbox.com/s/ei2nqsen641daei/pgpsig.txt>

On Wed, Aug 26, 2015 at 2:00 AM, Alec Lee <[email protected]> wrote:

> BTW, I am using spout and bolts, currently not using trident. Thanks
>
>
> On Aug 25, 2015, at 3:47 PM, Andrew Xor <[email protected]>
> wrote:
>
> What do you mean by that? It's a bit vague as timestamps can have quite
> high resolution (like for example minutes, seconds, msec) so you will
> probably have to do a bit of bucketization before sorting them.... then by
> using a partition aggregator (in Trident at least) you can to this very
> easily.
> ​​
> Hope this helps.
>
> Kindly yours,
>
> Andrew Grammenos
>
> -- PGP PKey --
> ​ <https://www.dropbox.com/s/2kcxe59zsi9nrdt/pgpsig.txt>
> https://www.dropbox.com/s/yxvycjvlsc111bh/pgpsig.txt
> <https://www.dropbox.com/s/ei2nqsen641daei/pgpsig.txt>
>
> On Wed, Aug 26, 2015 at 1:37 AM, Alec Lee <[email protected]> wrote:
>
>> Hi, all
>>
>> is there any sample codes to sort the events in terms of the timestamps
>> field of a tuple?
>>
>> thanks
>>
>>
>> AL
>
>
>
>

Reply via email to