public class StateMetaInfoSnapshot extends Object
RegisteredKeyValueStateBackendMetaInfo
).Modifier and Type | Class and Description |
---|---|
static class |
StateMetaInfoSnapshot.BackendStateType
Enum that defines the different types of state that live in Flink backends.
|
static class |
StateMetaInfoSnapshot.CommonOptionsKeys
Predefined keys for the most common options in the meta info.
|
static class |
StateMetaInfoSnapshot.CommonSerializerKeys
Predefined keys for the most common serializer types in the meta info.
|
Constructor and Description |
---|
StateMetaInfoSnapshot(String name,
StateMetaInfoSnapshot.BackendStateType backendStateType,
Map<String,String> options,
Map<String,TypeSerializerSnapshot<?>> serializerSnapshots) |
StateMetaInfoSnapshot(String name,
StateMetaInfoSnapshot.BackendStateType backendStateType,
Map<String,String> options,
Map<String,TypeSerializerSnapshot<?>> serializerSnapshots,
Map<String,TypeSerializer<?>> serializers)
TODO this variant, which requires providing the serializers, TODO should actually be removed,
leaving only
StateMetaInfoSnapshot(String, BackendStateType, Map, Map) . |
Modifier and Type | Method and Description |
---|---|
StateMetaInfoSnapshot.BackendStateType |
getBackendStateType() |
String |
getName() |
String |
getOption(StateMetaInfoSnapshot.CommonOptionsKeys key) |
String |
getOption(String key) |
Map<String,String> |
getOptionsImmutable() |
Map<String,TypeSerializerSnapshot<?>> |
getSerializerSnapshotsImmutable() |
TypeSerializer<?> |
getTypeSerializer(String key)
TODO this method should be removed once the serializer map is removed.
|
TypeSerializerSnapshot<?> |
getTypeSerializerSnapshot(StateMetaInfoSnapshot.CommonSerializerKeys key) |
TypeSerializerSnapshot<?> |
getTypeSerializerSnapshot(String key) |
public StateMetaInfoSnapshot(@Nonnull String name, @Nonnull StateMetaInfoSnapshot.BackendStateType backendStateType, @Nonnull Map<String,String> options, @Nonnull Map<String,TypeSerializerSnapshot<?>> serializerSnapshots)
public StateMetaInfoSnapshot(@Nonnull String name, @Nonnull StateMetaInfoSnapshot.BackendStateType backendStateType, @Nonnull Map<String,String> options, @Nonnull Map<String,TypeSerializerSnapshot<?>> serializerSnapshots, @Nonnull Map<String,TypeSerializer<?>> serializers)
StateMetaInfoSnapshot(String, BackendStateType, Map, Map)
. TODO This is
still used by snapshot extracting methods (i.e. computeSnapshot() method of specific state
meta TODO info subclasses), and will be removed once all serializers have the
restoreSerializer() factory method implemented.@Nonnull public StateMetaInfoSnapshot.BackendStateType getBackendStateType()
@Nullable public TypeSerializerSnapshot<?> getTypeSerializerSnapshot(@Nonnull String key)
@Nullable public TypeSerializerSnapshot<?> getTypeSerializerSnapshot(@Nonnull StateMetaInfoSnapshot.CommonSerializerKeys key)
@Nullable public String getOption(@Nonnull StateMetaInfoSnapshot.CommonOptionsKeys key)
@Nonnull public Map<String,TypeSerializerSnapshot<?>> getSerializerSnapshotsImmutable()
@Nullable public TypeSerializer<?> getTypeSerializer(@Nonnull String key)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.