Class SpannerLookupConfig

java.lang.Object
io.github.flink.gcp.connector.spanner.table.SpannerLookupConfig
All Implemented Interfaces:
Serializable

@Internal public final class SpannerLookupConfig extends Object implements Serializable
Lookup options owned by the Spanner table source.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTrigger
    Creates the configured full-cache reload trigger.
    org.apache.flink.table.connector.source.lookup.cache.DefaultLookupCache
    Creates the partial cache from Flink's standard options.
    boolean
    equals(Object other)
     
    from(org.apache.flink.configuration.ReadableConfig config)
    Maps the lookup options from the factory's validated configuration.
    org.apache.flink.table.connector.source.lookup.LookupOptions.LookupCacheType
    The standard Flink cache mode.
    int
    The number of retries after a lookup's initial read.
    int
     
    boolean
    Whether the source returns an asynchronous point-lookup provider.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • from

      public static SpannerLookupConfig from(org.apache.flink.configuration.ReadableConfig config)
      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

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

      public int hashCode()
      Overrides:
      hashCode in class Object