public class FlinkStateInternals<K>
extends java.lang.Object
implements org.apache.beam.runners.core.StateInternals
StateInternals that uses a Flink KeyedStateBackend to manage state.
Note: In the Flink streaming runner the key is always encoded using an Coder and
stored in a ByteBuffer.
| Modifier and Type | Class and Description |
|---|---|
static class |
FlinkStateInternals.EarlyBinder
Eagerly create user state to work around https://jira.apache.org/jira/browse/FLINK-12653.
|
| Constructor and Description |
|---|
FlinkStateInternals(org.apache.flink.runtime.state.KeyedStateBackend<java.nio.ByteBuffer> flinkStateBackend,
org.apache.beam.sdk.coders.Coder<K> keyCoder) |
| Modifier and Type | Method and Description |
|---|---|
K |
getKey() |
java.lang.Long |
minWatermarkHoldMs()
Returns the minimum over all watermark holds.
|
<T extends org.apache.beam.sdk.state.State> |
state(org.apache.beam.runners.core.StateNamespace namespace,
org.apache.beam.runners.core.StateTag<T> address,
org.apache.beam.sdk.state.StateContext<?> context) |
public FlinkStateInternals(org.apache.flink.runtime.state.KeyedStateBackend<java.nio.ByteBuffer> flinkStateBackend,
org.apache.beam.sdk.coders.Coder<K> keyCoder)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Long minWatermarkHoldMs()
public K getKey()
getKey in interface org.apache.beam.runners.core.StateInternalspublic <T extends org.apache.beam.sdk.state.State> T state(org.apache.beam.runners.core.StateNamespace namespace,
org.apache.beam.runners.core.StateTag<T> address,
org.apache.beam.sdk.state.StateContext<?> context)
state in interface org.apache.beam.runners.core.StateInternals