public class TtlStateFactory<K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.State,IS extends S> extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
TtlStateFactory.TtlSerializer<T>
Serializer for user state value with TTL.
|
static class |
TtlStateFactory.TtlSerializerSnapshot<T>
A
TypeSerializerSnapshot for TtlSerializer. |
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.State,IS extends S> |
createStateAndWrapWithTtlIfEnabled(org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.state.StateDescriptor<S,SV> stateDesc,
KeyedStateBackend<K> stateBackend,
TtlTimeProvider timeProvider) |
public static <K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.State,IS extends S> IS createStateAndWrapWithTtlIfEnabled(org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.state.StateDescriptor<S,SV> stateDesc,
KeyedStateBackend<K> stateBackend,
TtlTimeProvider timeProvider)
throws Exception
ExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.