Returns a factory that provides a
ReplicatedMap as the context
object. A replicated map is a particularly good choice if you are
enriching an event stream with the data stored in the Hazelcast Jet
cluster. Unlike in a
hashJoin transformation, the data in the
map can change while the job is running so you can keep the enriching
dataset up-to-date. Unlike
IMap, the data you access is local so
you won't do any blocking calls using it (important for performance).
If you want to destroy the map after the job finishes, call
factory.destroyFn(ReplicatedMap::destroy) on the object you get
from this method.
Example usage (without destroyFn):
p.drawFrom( /* a batch or streaming source */ )
.mapUsingContext(replicatedMapContext("fooMapName"),
(map, item) -> tuple2(item, map.get(item.getKey())))
.destroyFn(ReplicatedMap::destroy);