Class TtlStateFactory<K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.v2.State,IS>
- java.lang.Object
-
- org.apache.flink.runtime.state.v2.ttl.TtlStateFactory<K,N,SV,TTLSV,S,IS>
-
public class TtlStateFactory<K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.v2.State,IS> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTtlStateFactory.TtlSerializer<T>Serializer for user state value with TTL.static classTtlStateFactory.TtlSerializerSnapshot<T>ATypeSerializerSnapshotfor TtlSerializer.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.v2.State,IS extends S>
IScreateStateAndWrapWithTtlIfEnabled(N defaultNamespace, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.state.v2.StateDescriptor<SV> stateDesc, AsyncKeyedStateBackend<K> stateBackend, TtlTimeProvider timeProvider)static booleanisTtlStateSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<?> typeSerializer)
-
-
-
Method Detail
-
createStateAndWrapWithTtlIfEnabled
public static <K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.v2.State,IS extends S> IS createStateAndWrapWithTtlIfEnabled(N defaultNamespace, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.state.v2.StateDescriptor<SV> stateDesc, AsyncKeyedStateBackend<K> stateBackend, TtlTimeProvider timeProvider) throws Exception- Throws:
Exception
-
isTtlStateSerializer
public static boolean isTtlStateSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<?> typeSerializer)
-
-