pyflink.datastream.state.ReadOnlyBroadcastState#
- class ReadOnlyBroadcastState[source]#
A read-only view of the
BroadcastState
. Although read-only, the user code should not modify the value returned by theget()
or the items returned byitems()
, as this can lead to inconsistent states. The reason for this is that we do not create extra copies of the elements for performance reasons.Methods
clear
()Removes the value mapped under the current key.
contains
(key)Returns whether there exists the given mapping.
get
(key)Returns the current value associated with the given key.
is_empty
()Returns true if this state contains no key-value mappings, otherwise false.
items
()Returns all the mappings in the state.
keys
()Returns all the keys in the state.
values
()Returns all the values in the state.