Interface FullCachingLookupProvider
- All Superinterfaces:
LookupFunctionProvider,LookupTableSource.LookupRuntimeProvider
A
LookupFunctionProvider that never lookup in external system on cache miss and provides
a cache for holding all entries in the external system. The cache will be fully reloaded from the
external system by the ScanTableSource.ScanRuntimeProvider and reload operations will be
triggered by the CacheReloadTrigger.-
Method Summary
Modifier and TypeMethodDescriptionGet aCacheReloadTriggerfor triggering the reload operation.Get aScanTableSource.ScanRuntimeProviderfor scanning all entries from the external lookup table and load into the cache.static FullCachingLookupProviderof(ScanTableSource.ScanRuntimeProvider scanRuntimeProvider, CacheReloadTrigger cacheReloadTrigger) Build aFullCachingLookupProviderfrom the specifiedScanTableSource.ScanRuntimeProviderandCacheReloadTrigger.Methods inherited from interface org.apache.flink.table.connector.source.lookup.LookupFunctionProvider
createLookupFunction
-
Method Details
-
of
static FullCachingLookupProvider of(ScanTableSource.ScanRuntimeProvider scanRuntimeProvider, CacheReloadTrigger cacheReloadTrigger) Build aFullCachingLookupProviderfrom the specifiedScanTableSource.ScanRuntimeProviderandCacheReloadTrigger. -
getScanRuntimeProvider
ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider()Get aScanTableSource.ScanRuntimeProviderfor scanning all entries from the external lookup table and load into the cache. -
getCacheReloadTrigger
CacheReloadTrigger getCacheReloadTrigger()Get aCacheReloadTriggerfor triggering the reload operation.
-