Re: Token awareness of storm bolts

2016-03-08 Thread Nathan Leung
No. Hash function can be applied to any object, assuming it has a suitable implementation defined, so it is impossible to define a "range". Also, that's not how hash functions work. On Mar 7, 2016 10:29 PM, "Gireesh Ramji" wrote: > In my topology, I have a bolt that subscribes from its predecesso

Token awareness of storm bolts

2016-03-07 Thread Gireesh Ramji
In my topology, I have a bolt that subscribes from its predecessor using a fields grouping. Is there an easy way for me to know, in the bolt's execute method, the range of keys that will get hashed to a given instance of the bolt under the fields grouping? ThanksGireesh