Hi, IgniteQuery#setLocal(true) will make the query to execute only on local node.
Use IgniteCompute#affinityCall / affinityRun to send a job that would execute your local query to specific node. For example, this will execute a local query on a node where "myKey" is stored: compute.*affinityRun*(Collections.singletoneList("CacheName"), myKey, () -> { IgniteQuery<...> qry = new ...; qry.*setLocal*(true); ignite.cache("CacheName").query(qry); On Mon, Dec 4, 2017 at 7:05 AM, Aurora <2565003...@qq.com> wrote: > Hi Igniters, > Ignite 2.2, a couple of server nodes. > > I need to realize cache query operator only in local node or specific node, > but I didn't found the related API in IgniteCache. > > I appreciate if you could give me a hint. > > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > -- Best regards, Alexey