Class SpannerLookupConfig
java.lang.Object
io.github.flink.gcp.connector.spanner.table.SpannerLookupConfig
- All Implemented Interfaces:
Serializable
Lookup options owned by the Spanner table source.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTriggerCreates the configured full-cache reload trigger.org.apache.flink.table.connector.source.lookup.cache.DefaultLookupCacheCreates the partial cache from Flink's standard options.booleanstatic SpannerLookupConfigfrom(org.apache.flink.configuration.ReadableConfig config) Maps the lookup options from the factory's validated configuration.org.apache.flink.table.connector.source.lookup.LookupOptions.LookupCacheTypeThe standard Flink cache mode.intThe number of retries after a lookup's initial read.inthashCode()booleanisAsync()Whether the source returns an asynchronous point-lookup provider.
-
Method Details
-
from
Maps the lookup options from the factory's validated configuration.- Parameters:
config- the table's options- Returns:
- the lookup options
-
isAsync
public boolean isAsync()Whether the source returns an asynchronous point-lookup provider.- Returns:
- whether lookups are asynchronous
-
getCacheType
public org.apache.flink.table.connector.source.lookup.LookupOptions.LookupCacheType getCacheType()The standard Flink cache mode.- Returns:
- the cache mode
-
getMaxRetries
public int getMaxRetries()The number of retries after a lookup's initial read.- Returns:
- the retry count
-
createPartialCache
public org.apache.flink.table.connector.source.lookup.cache.DefaultLookupCache createPartialCache()Creates the partial cache from Flink's standard options.- Returns:
- a new partial cache
-
createFullReloadTrigger
public org.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTrigger createFullReloadTrigger()Creates the configured full-cache reload trigger.- Returns:
- a new reload trigger
-
equals
-
hashCode
public int hashCode()
-