public class SparkStateInternals<K>
extends java.lang.Object
implements org.apache.beam.runners.core.StateInternals
StateInternals
for the SparkRunner.Modifier and Type | Method and Description |
---|---|
static <K> SparkStateInternals<K> |
forKey(K key) |
static <K> SparkStateInternals<K> |
forKeyAndState(K key,
org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.collect.Table<java.lang.String,java.lang.String,byte[]> stateTable) |
K |
getKey() |
org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.collect.Table<java.lang.String,java.lang.String,byte[]> |
getState() |
<T extends State> |
state(org.apache.beam.runners.core.StateNamespace namespace,
org.apache.beam.runners.core.StateTag<T> address,
StateContext<?> c) |
public static <K> SparkStateInternals<K> forKey(K key)
public static <K> SparkStateInternals<K> forKeyAndState(K key, org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.collect.Table<java.lang.String,java.lang.String,byte[]> stateTable)
public org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.collect.Table<java.lang.String,java.lang.String,byte[]> getState()
public K getKey()
getKey
in interface org.apache.beam.runners.core.StateInternals
public <T extends State> T state(org.apache.beam.runners.core.StateNamespace namespace, org.apache.beam.runners.core.StateTag<T> address, StateContext<?> c)
state
in interface org.apache.beam.runners.core.StateInternals