Class FullCacheReloadConfig
java.lang.Object
io.github.flink.gcp.connector.base.table.FullCacheReloadConfig
- All Implemented Interfaces:
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 Summary
Modifier and TypeMethodDescriptionorg.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTriggerCreates the reload trigger the options describe.booleanstatic FullCacheReloadConfigfrom(org.apache.flink.configuration.ReadableConfig config) Reads and checks the full-cache reload options.inthashCode()
-
Method Details
-
from
Reads and checks the full-cache reload options. Call it only for a table whoselookup.cacheisFULL: 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 timeIllegalArgumentException- 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
-
hashCode
public int hashCode()
-