Interface StateTypeStrategy
-
- All Superinterfaces:
TypeStrategy
@PublicEvolving public interface StateTypeStrategy extends TypeStrategy
Strategy for inferring a function call's intermediate result data type (i.e. state entry).
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Duration>getTimeToLive(CallContext callContext)The time-to-live (TTL) duration that automatically cleans up the state entry.static StateTypeStrategyof(TypeStrategy typeStrategy)static StateTypeStrategyof(TypeStrategy typeStrategy, Duration timeToLive)-
Methods inherited from interface org.apache.flink.table.types.inference.TypeStrategy
inferType
-
-
-
-
Method Detail
-
of
static StateTypeStrategy of(TypeStrategy typeStrategy)
-
of
static StateTypeStrategy of(TypeStrategy typeStrategy, @Nullable Duration timeToLive)
-
getTimeToLive
Optional<Duration> getTimeToLive(CallContext callContext)
The time-to-live (TTL) duration that automatically cleans up the state entry.Returning
Optional.empty()will fall back to default behavior. Returning a value equal or greater than 0 means setting a custom TTL for this state entry and ignoring the global defaults.
-
-