use of com.hazelcast.spi.impl.UnmodifiableLazySet in project hazelcast by hazelcast.
the class ClientMapProxy method keySetWithPagingPredicate.
@SuppressWarnings("unchecked")
private Set keySetWithPagingPredicate(Predicate predicate) {
PagingPredicateImpl pagingPredicate = unwrapPagingPredicate(predicate);
pagingPredicate.setIterationType(IterationType.KEY);
PagingPredicateHolder pagingPredicateHolder = PagingPredicateHolder.of(predicate, getSerializationService());
ClientMessage request = MapKeySetWithPagingPredicateCodec.encodeRequest(name, pagingPredicateHolder);
ClientMessage response = invokeWithPredicate(request, predicate);
MapKeySetWithPagingPredicateCodec.ResponseParameters resultParameters = MapKeySetWithPagingPredicateCodec.decodeResponse(response);
SerializationService serializationService = getSerializationService();
pagingPredicate.setAnchorList(resultParameters.anchorDataList.asAnchorList(serializationService));
return new UnmodifiableLazySet(resultParameters.response, serializationService);
}
use of com.hazelcast.spi.impl.UnmodifiableLazySet in project hazelcast by hazelcast.
the class ClientMultiMapProxy method entrySet.
@Nonnull
@Override
public Set<Map.Entry<K, V>> entrySet() {
ClientMessage request = MultiMapEntrySetCodec.encodeRequest(name);
ClientMessage response = invoke(request);
return (Set) new UnmodifiableLazySet(MultiMapEntrySetCodec.decodeResponse(response), getSerializationService());
}
Aggregations