Search in sources :

Example 1 with ImdgUtil.asXmlString

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));
}
Also used : RemoteProcessorSupplier(com.hazelcast.jet.impl.connector.ReadMapOrCacheP.RemoteProcessorSupplier) ImdgUtil.asXmlString(com.hazelcast.jet.impl.util.ImdgUtil.asXmlString) Nonnull(javax.annotation.Nonnull)

Aggregations

RemoteProcessorSupplier (com.hazelcast.jet.impl.connector.ReadMapOrCacheP.RemoteProcessorSupplier)1 ImdgUtil.asXmlString (com.hazelcast.jet.impl.util.ImdgUtil.asXmlString)1 Nonnull (javax.annotation.Nonnull)1