storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheney Chen <tbcql1...@gmail.com>
Subject Re: Embeded group count via Trident?
Date Sat, 15 Oct 2016 23:21:44 GMT
Anyone has smart solution here?

On Tue, Oct 11, 2016 at 4:39 PM, Cheney Chen <tbcql1986@gmail.com> wrote:

> Hi there,
>
> I'm playing w/ Trident. Got one special user case, don't have much clue
> yet. Wanna see if anyone has any good idea.
>
> Here it is:
>
> Input data is: (batchId, docId)
>
> Ouput required:
> batch1 {
> docId1: count1
> docId2: count2
> }
>
> Detail
>
> input:
> batch1 doc1
> batch2 doc1
> batch1 doc2
> batch1 doc1
>
> output:
> batch1 {
> doc1: 3
> doc2: 1
> }
>
> batch2 {
> doc1: 1
> }
>
> It's easy to achieve (batchId: count) or (docId: count) via persistent
> aggregate.
> But how about above case?
> --
> Regards,
> Qili Chen (Cheney)
>
> E-mail: tbcql1986@gmail.com
> MP: (+1) 4086217503
>



-- 
Regards,
Qili Chen (Cheney)

E-mail: tbcql1986@gmail.com
MP: (+1) 4086217503

Mime
View raw message