public class StateMetaInfoSnapshot extends Object
RegisteredKeyValueStateBackendMetaInfo).| 限定符和类型 | 类和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
StateMetaInfoSnapshot(String name,
StateMetaInfoSnapshot.BackendStateType backendStateType,
Map<String,String> options,
Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> serializerSnapshots) |
StateMetaInfoSnapshot(String name,
StateMetaInfoSnapshot.BackendStateType backendStateType,
Map<String,String> options,
Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> serializerSnapshots,
Map<String,org.apache.flink.api.common.typeutils.TypeSerializer<?>> serializers)
TODO this variant, which requires providing the serializers, TODO should actually be removed,
leaving only
StateMetaInfoSnapshot(String, BackendStateType, Map, Map). |
| 限定符和类型 | 方法和说明 |
|---|---|
StateMetaInfoSnapshot.BackendStateType |
getBackendStateType() |
String |
getName() |
String |
getOption(StateMetaInfoSnapshot.CommonOptionsKeys key) |
String |
getOption(String key) |
Map<String,String> |
getOptionsImmutable() |
Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> |
getSerializerSnapshotsImmutable() |
org.apache.flink.api.common.typeutils.TypeSerializer<?> |
getTypeSerializer(String key)
TODO this method should be removed once the serializer map is removed.
|
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?> |
getTypeSerializerSnapshot(StateMetaInfoSnapshot.CommonSerializerKeys key) |
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?> |
getTypeSerializerSnapshot(String key) |
public StateMetaInfoSnapshot(@Nonnull String name, @Nonnull StateMetaInfoSnapshot.BackendStateType backendStateType, @Nonnull Map<String,String> options, @Nonnull Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> serializerSnapshots)
public StateMetaInfoSnapshot(@Nonnull String name, @Nonnull StateMetaInfoSnapshot.BackendStateType backendStateType, @Nonnull Map<String,String> options, @Nonnull Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> serializerSnapshots, @Nonnull Map<String,org.apache.flink.api.common.typeutils.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 org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?> getTypeSerializerSnapshot(@Nonnull String key)
@Nullable public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?> getTypeSerializerSnapshot(@Nonnull StateMetaInfoSnapshot.CommonSerializerKeys key)
@Nullable public String getOption(@Nonnull StateMetaInfoSnapshot.CommonOptionsKeys key)
@Nonnull public Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> getSerializerSnapshotsImmutable()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.