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 Details

    • of

      static StateTypeStrategy of(TypeStrategy typeStrategy)
    • of

      static StateTypeStrategy of(TypeStrategy typeStrategy, @Nullable Duration timeToLive)
    • getTimeToLive

      Optional<Duration> getTimeToLive(org.apache.flink.table.types.inference.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.