checkNotNull(projection, NULL_PROJECTION_IS_NOT_ALLOWED); checkNotNull(predicate, NULL_PREDICATE_IS_NOT_ALLOWED); checkNotPagingPredicate(predicate, "iterator"); return new ClientMapQueryPartitionIterator<K, V, R>(this, getContext(), fetchSize, partitionId, predicate, projection);
@Override public <R> Collection<R> project(Projection<Entry<K, V>, R> projection, Predicate<K, V> predicate) { checkNotPagingPredicate(predicate, "project"); ClientMessage request = MapProjectWithPredicateCodec.encodeRequest(name, toData(projection), toData(predicate)); ClientMessage response = invokeWithPredicate(request, predicate); MapProjectWithPredicateCodec.ResponseParameters resultParameters = MapProjectWithPredicateCodec.decodeResponse(response); return new UnmodifiableLazyList<R>(resultParameters.response, getSerializationService()); }
checkNotNull(projection, NULL_PROJECTION_IS_NOT_ALLOWED); checkNotNull(predicate, NULL_PREDICATE_IS_NOT_ALLOWED); checkNotPagingPredicate(predicate, "iterator"); return new ClientMapQueryPartitionIterator<K, V, R>(this, getContext(), fetchSize, partitionId, predicate, projection);
@Override public <R> Collection<R> project(Projection<Entry<K, V>, R> projection, Predicate<K, V> predicate) { checkNotPagingPredicate(predicate, "project"); ClientMessage request = MapProjectWithPredicateCodec.encodeRequest(name, toData(projection), toData(predicate)); ClientMessage response = invokeWithPredicate(request, predicate); MapProjectWithPredicateCodec.ResponseParameters resultParameters = MapProjectWithPredicateCodec.decodeResponse(response); return new UnmodifiableLazyList<R>(resultParameters.response, getSerializationService()); }
@Override public <R> R aggregate(Aggregator<Map.Entry<K, V>, R> aggregator, Predicate<K, V> predicate) { checkNotNull(aggregator, NULL_AGGREGATOR_IS_NOT_ALLOWED); checkNotNull(predicate, NULL_PREDICATE_IS_NOT_ALLOWED); checkNotPagingPredicate(predicate, "aggregate"); ClientMessage request = MapAggregateWithPredicateCodec.encodeRequest(name, toData(aggregator), toData(predicate)); ClientMessage response = invokeWithPredicate(request, predicate); MapAggregateWithPredicateCodec.ResponseParameters resultParameters = MapAggregateWithPredicateCodec.decodeResponse(response); return toObject(resultParameters.response); }
@Override public <R> R aggregate(Aggregator<Map.Entry<K, V>, R> aggregator, Predicate<K, V> predicate) { checkNotNull(aggregator, NULL_AGGREGATOR_IS_NOT_ALLOWED); checkNotNull(predicate, NULL_PREDICATE_IS_NOT_ALLOWED); checkNotPagingPredicate(predicate, "aggregate"); ClientMessage request = MapAggregateWithPredicateCodec.encodeRequest(name, toData(aggregator), toData(predicate)); ClientMessage response = invokeWithPredicate(request, predicate); MapAggregateWithPredicateCodec.ResponseParameters resultParameters = MapAggregateWithPredicateCodec.decodeResponse(response); return toObject(resultParameters.response); }