Re: Shared variable in executor level

2018-06-14 Thread Nikodimos Nikolaidis
Thanks, that's what I was looking for. On 06/14/2018 04:41 PM, Sean Owen wrote: > Just use a singleton or static variable. It will be a simple per-JVM > value that is therefore per-executor. > > On Thu, Jun 14, 2018 at 6:59 AM Nikodimos Nikolaidis > mailto:niknik...@csd.

Shared variable in executor level

2018-06-14 Thread Nikodimos Nikolaidis
Hello community, I am working on a project in which statistics (like predicate selectivity) are collected during execution. I think that it's a good idea to keep these statistics in executor level. So, all tasks in same executor share the same variable and no extra network traffic is needed.