use of com.hazelcast.function.BiPredicateEx in project hazelcast by hazelcast.
the class ComputeStageImplBase method attachFilterUsingPartitionedService.
@Nonnull
@SuppressWarnings({ "unchecked", "rawtypes" })
<S, K, RET> RET attachFilterUsingPartitionedService(@Nonnull ServiceFactory<?, S> serviceFactory, @Nonnull FunctionEx<? super T, ? extends K> partitionKeyFn, @Nonnull BiPredicateEx<? super S, ? super T> filterFn) {
checkSerializable(filterFn, "filterFn");
checkSerializable(partitionKeyFn, "partitionKeyFn");
serviceFactory = moveAttachedFilesToPipeline(serviceFactory);
BiPredicateEx adaptedFilterFn = fnAdapter.adaptFilterUsingServiceFn(filterFn);
FunctionEx adaptedPartitionKeyFn = fnAdapter.adaptKeyFn(partitionKeyFn);
return (RET) attach(filterUsingServicePartitionedTransform(transform, serviceFactory, adaptedFilterFn, adaptedPartitionKeyFn), fnAdapter);
}
use of com.hazelcast.function.BiPredicateEx in project hazelcast by hazelcast.
the class ComputeStageImplBase method attachFilterUsingService.
@Nonnull
@SuppressWarnings({ "unchecked", "rawtypes" })
<S, RET> RET attachFilterUsingService(@Nonnull ServiceFactory<?, S> serviceFactory, @Nonnull BiPredicateEx<? super S, ? super T> filterFn) {
checkSerializable(filterFn, "filterFn");
serviceFactory = moveAttachedFilesToPipeline(serviceFactory);
BiPredicateEx adaptedFilterFn = fnAdapter.adaptFilterUsingServiceFn(filterFn);
return attach(filterUsingServiceTransform(transform, serviceFactory, adaptedFilterFn), fnAdapter);
}
Aggregations