EntryObject e = new PredicateBuilder () getEntryObject ().;
PredicateBuilder sql = new PredicateBuilder ();
// Predicat prédicat = e.get ("currencySupported.isoCode").equal(850);
Predicat prédicat = e.get ("currencySupported").get ("iscoCode») equal(850);
Set <Customer> customer = (Set <Customer>) mapCustomers.values (predicat);
Seem also to be a problem, how is the syntax correct for access to a local Set/list/collect with predicat.
Caused by: java.lang.IllegalArgumentException: There is no suitable accessor for 'iscoCode'
cus : Picsou
currency : 978 Euros
currency : 850 USD
cus : Daisy
currency : 978 Euros
cus : Donald
currency : 850 USD
cus : Dingo
currency : 850 USD
cus : Rapetou
currency : 978 Euros
cus : TEST
currency : 850 USD
nov. 05, 2013 9:07:25 PM com.hazelcast.map.operation.QueryOperation
SEVERE: [192.168.0.10]:5704 [dev] com.hazelcast.query.impl.QueryException: com.hazelcast.query.impl.QueryException: java.lang.NullPointerException
java.util.concurrent.ExecutionException: com.hazelcast.query.impl.QueryException: com.hazelcast.query.impl.QueryException: java.lang.NullPointerException
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at com.hazelcast.map.operation.QueryOperation.runParallel(QueryOperation.java:124)
at com.hazelcast.map.operation.QueryOperation.run(QueryOperation.java:70)
at com.hazelcast.spi.impl.OperationServiceImpl.doRunOperation(OperationServiceImpl.java:274)
at com.hazelcast.spi.impl.OperationServiceImpl.runOperation(OperationServiceImpl.java:184)
at com.hazelcast.spi.impl.InvocationImpl.doInvoke(InvocationImpl.java:169)
at com.hazelcast.spi.impl.InvocationImpl.invoke(InvocationImpl.java:103)
at com.hazelcast.map.proxy.MapProxySupport.query(MapProxySupport.java:675)
at com.hazelcast.map.proxy.MapProxyImpl.values(MapProxyImpl.java:461)
at hazelcast.GettingStartedClientTest.main(GettingStartedClientTest.java:55)
Caused by: com.hazelcast.query.impl.QueryException: com.hazelcast.query.impl.QueryException: java.lang.NullPointerException
at com.hazelcast.query.impl.QueryEntry.extractViaReflection(QueryEntry.java:88)
at com.hazelcast.query.impl.QueryEntry.getAttribute(QueryEntry.java:78)