storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheney Chen <tbcql1...@gmail.com>
Subject Embeded group count via Trident?
Date Tue, 11 Oct 2016 23:39:52 GMT
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

Mime
View raw message