Package com.hazelcast.jet.core
Class BroadcastKey<K>
java.lang.Object
com.hazelcast.jet.core.BroadcastKey<K>
- Type Parameters:
K
- type of key
Marks a key in the snapshot state to indicate that the
corresponding entry should be broadcast to all processors
when restoring the snapshot.
- Since:
- Jet 3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K> BroadcastKey<K>
broadcastKey
(K key) Returns a given key as a broadcast key.boolean
int
hashCode()
key()
Returns the underlying keytoString()
-
Method Details
-
key
Returns the underlying key -
broadcastKey
Returns a given key as a broadcast key.Note: Several processor instances can use the returned
BroadcastKey
with the samekey
to store unique values and the values will not overwrite each other. Upon a snapshot restore, each processor will receive multiple key-value pairs with the given BroadcastKey -
equals
-
hashCode
public int hashCode() -
toString
-