is the collection returned by sql predicate from a hazelcast map unmodifiable? I am trying to add to the set which I receive from the sql predicate (on a hazelcast map) - I just need to confirm whether its modifiable or whether its my code which is causing the issue.
Set<UDC> testSet = new HashSet<UDC>();
testSet = (Set<UDC>) testMap.values(new SqlPredicate("testUUID != " + id + " AND testStatus = 1")); //Set is not empty!
Any add operation on the set is throwing an UnsupportedOperationException. Thanks in advance!
Based on my initial testing, the set returned from the SQLPredicate is unmodifiable. I could not find any option to retrieve a modifiable set using the sqlpredicate (using hazelcast-2.5). I would be quite glad if I'm wrong! Hope it helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.