Package org.apache.flink.runtime.state
Class HeapBroadcastState<K,V>
- java.lang.Object
-
- org.apache.flink.runtime.state.HeapBroadcastState<K,V>
-
- Type Parameters:
K
- The key type of the elements in theBroadcast State
.V
- The value type of the elements in theBroadcast State
.
- All Implemented Interfaces:
org.apache.flink.api.common.state.BroadcastState<K,V>
,org.apache.flink.api.common.state.ReadOnlyBroadcastState<K,V>
,org.apache.flink.api.common.state.State
,BackendWritableBroadcastState<K,V>
public class HeapBroadcastState<K,V> extends Object implements BackendWritableBroadcastState<K,V>
ABroadcast State
backed a heap-basedMap
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
contains(K key)
HeapBroadcastState<K,V>
deepCopy()
Iterable<Map.Entry<K,V>>
entries()
V
get(K key)
org.apache.flink.api.common.typeutils.base.MapSerializer<K,V>
getInternalMapCopySerializer()
RegisteredBroadcastStateBackendMetaInfo<K,V>
getStateMetaInfo()
Iterable<Map.Entry<K,V>>
immutableEntries()
Iterator<Map.Entry<K,V>>
iterator()
void
put(K key, V value)
void
putAll(Map<K,V> map)
void
remove(K key)
void
setStateMetaInfo(RegisteredBroadcastStateBackendMetaInfo<K,V> stateMetaInfo)
String
toString()
long
write(org.apache.flink.core.fs.FSDataOutputStream out)
-
-
-
Method Detail
-
setStateMetaInfo
public void setStateMetaInfo(RegisteredBroadcastStateBackendMetaInfo<K,V> stateMetaInfo)
- Specified by:
setStateMetaInfo
in interfaceBackendWritableBroadcastState<K,V>
-
getStateMetaInfo
public RegisteredBroadcastStateBackendMetaInfo<K,V> getStateMetaInfo()
- Specified by:
getStateMetaInfo
in interfaceBackendWritableBroadcastState<K,V>
-
deepCopy
public HeapBroadcastState<K,V> deepCopy()
- Specified by:
deepCopy
in interfaceBackendWritableBroadcastState<K,V>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.flink.api.common.state.State
-
write
public long write(org.apache.flink.core.fs.FSDataOutputStream out) throws IOException
- Specified by:
write
in interfaceBackendWritableBroadcastState<K,V>
- Throws:
IOException
-
remove
public void remove(K key)
-
contains
public boolean contains(K key)
-
-