use of com.hazelcast.jet.stream.DistributedCollectors.toMap in project hazelcast-jet-reference-manual by hazelcast.
the class JUS method s3.
static void s3() {
JetInstance jet = Jet.newJetInstance();
// tag::s3[]
// <1>
IMapJet<String, String> map = jet.getMap("large_map");
Map<String, String> result = DistributedStream.fromMap(map).map(e -> e.getKey() + e.getValue()).collect(// <2>
DistributedCollectors.toMap(v -> v, v -> v));
// end::s3[]
}
Aggregations