use of com.hazelcast.jet.impl.util.ImdgUtil.asXmlString in project hazelcast by hazelcast.
the class HazelcastReaders method readRemoteMapSupplier.
@Nonnull
public static <K, V, T> ProcessorSupplier readRemoteMapSupplier(@Nonnull String mapName, @Nonnull ClientConfig clientConfig, @Nonnull Predicate<? super K, ? super V> predicate, @Nonnull Projection<? super Entry<K, V>, ? extends T> projection) {
checkSerializable(Objects.requireNonNull(predicate), "predicate");
checkSerializable(Objects.requireNonNull(projection), "projection");
String clientXml = ImdgUtil.asXmlString(clientConfig);
return new RemoteProcessorSupplier<>(clientXml, new RemoteMapQueryReaderFunction<>(mapName, predicate, projection));
}
Aggregations