K
- The key type of the elements in the Broadcast State
.V
- The value type of the elements in the Broadcast State
.public class HeapBroadcastState<K,V> extends Object implements BackendWritableBroadcastState<K,V>
Broadcast State
backed a heap-based Map
.Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
contains(K key) |
HeapBroadcastState<K,V> |
deepCopy() |
Iterable<Map.Entry<K,V>> |
entries() |
V |
get(K key) |
RegisteredBroadcastBackendStateMetaInfo<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(RegisteredBroadcastBackendStateMetaInfo<K,V> stateMetaInfo) |
String |
toString() |
long |
write(org.apache.flink.core.fs.FSDataOutputStream out) |
public void setStateMetaInfo(RegisteredBroadcastBackendStateMetaInfo<K,V> stateMetaInfo)
setStateMetaInfo
in interface BackendWritableBroadcastState<K,V>
public RegisteredBroadcastBackendStateMetaInfo<K,V> getStateMetaInfo()
getStateMetaInfo
in interface BackendWritableBroadcastState<K,V>
public HeapBroadcastState<K,V> deepCopy()
deepCopy
in interface BackendWritableBroadcastState<K,V>
public void clear()
clear
in interface org.apache.flink.api.common.state.State
public long write(org.apache.flink.core.fs.FSDataOutputStream out) throws IOException
write
in interface BackendWritableBroadcastState<K,V>
IOException
public void remove(K key)
public boolean contains(K key)
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.