incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bigman <big...@gmail.com>
Subject Re: In a PE how do I know which Keys are getting sent to me?
Date Thu, 17 Nov 2011 07:24:30 GMT
Reading the code looks like they are the same... Yes

Sent from my iPhone

On Nov 16, 2011, at 10:29 PM, kishore g <g.kishore@gmail.com> wrote:

> Will id/getId() of the PE help ?
> 
> On Wed, Nov 16, 2011 at 11:32 AM, Aron Sogor <bigman@gmail.com> wrote:
> Here is a scenario:
> 
> DBSinkPE- writes the event to the database.
> DBKeySelector- based on the event id picks which db to write to.
> 
> The problem is simple sharding by using modulus. In the PE I need to know which key the
event belongs to so I can create the right jdbc url.
> 
> #1 I can call the KeyFinder again... seems clunky.
> #2 I can mark the event with the Key in the KeyFinder... probably works.
> 
> #3 some elegant method you will tell me...
> 

Mime
View raw message