Class FullCacheReloadConfig

java.lang.Object
io.github.flink.gcp.connector.base.table.FullCacheReloadConfig
All Implemented Interfaces:
Serializable

@Internal public final class FullCacheReloadConfig extends Object implements Serializable
The standard lookup.full-cache.* options of a table whose lookup.cache is FULL, read and checked while the statement is planned, and the reload trigger they describe.

Every table connector with a full cache holds one, so the reload mapping and its planning checks cannot drift between connectors (#2042). Whether a connector accepts FULL at all, and which of its own options conflict with it, stays with the connector.

See Also:
  • Method Details

    • from

      public static FullCacheReloadConfig from(org.apache.flink.configuration.ReadableConfig config)
      Reads and checks the full-cache reload options. Call it only for a table whose lookup.cache is FULL: a missing periodic interval is refused here even though another cache type would never read it.
      Parameters:
      config - the table's options
      Returns:
      the reload options
      Throws:
      org.apache.flink.table.api.ValidationException - if the periodic interval is shorter than one millisecond, or if the timed reload time is not an ISO-8601 time
      IllegalArgumentException - if Flink's reload trigger refuses the options, such as a missing periodic interval
    • createTrigger

      public org.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTrigger createTrigger()
      Creates the reload trigger the options describe.
      Returns:
      a new reload trigger
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object