public class SamzaStoreStateInternals<K>
extends java.lang.Object
implements org.apache.beam.runners.core.StateInternals
StateInternals that uses Samza local KeyValueStore to manage state.| Modifier and Type | Class and Description |
|---|---|
static class |
SamzaStoreStateInternals.ByteArray
Wrapper of byte[] so it can used as key in the KeyValueStore for caching.
|
static class |
SamzaStoreStateInternals.ByteArraySerdeFactory
Factory class to provide
SamzaStoreStateInternals.ByteArraySerdeFactory.ByteArraySerde. |
static class |
SamzaStoreStateInternals.Factory<K>
Factory class to create
SamzaStoreStateInternals. |
static class |
SamzaStoreStateInternals.StateValue<T>
Wrapper for state value so that unencoded value can be read directly from the cache of
KeyValueStore.
|
static class |
SamzaStoreStateInternals.StateValueSerdeFactory
Factory class to provide
SamzaStoreStateInternals.StateValueSerdeFactory.StateValueSerde. |
| Modifier and Type | Method and Description |
|---|---|
K |
getKey() |
<T extends org.apache.beam.sdk.state.State> |
state(org.apache.beam.runners.core.StateNamespace stateNamespace,
org.apache.beam.runners.core.StateTag<T> stateTag) |
<V extends org.apache.beam.sdk.state.State> |
state(org.apache.beam.runners.core.StateNamespace namespace,
org.apache.beam.runners.core.StateTag<V> address,
org.apache.beam.sdk.state.StateContext<?> stateContext) |
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 stateNamespace,
org.apache.beam.runners.core.StateTag<T> stateTag)
state in interface org.apache.beam.runners.core.StateInternalspublic <V extends org.apache.beam.sdk.state.State> V state(org.apache.beam.runners.core.StateNamespace namespace,
org.apache.beam.runners.core.StateTag<V> address,
org.apache.beam.sdk.state.StateContext<?> stateContext)
state in interface org.apache.beam.runners.core.StateInternals