Class InputFormatCacheLoader
java.lang.Object
org.apache.flink.table.runtime.functions.table.lookup.fullcache.CacheLoader
org.apache.flink.table.runtime.functions.table.lookup.fullcache.inputformat.InputFormatCacheLoader
- All Implemented Interfaces:
Serializable,AutoCloseable
CacheLoader that used InputFormat for loading data into the cache.- See Also:
-
Field Summary
Fields inherited from class org.apache.flink.table.runtime.functions.table.lookup.fullcache.CacheLoader
cache, isStopped, TIMEOUT_AFTER_INTERRUPT_MS -
Constructor Summary
ConstructorsConstructorDescriptionInputFormatCacheLoader(org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData, ?> initialInputFormat, GenericRowDataKeySelector keySelector, RowDataSerializer cacheEntriesSerializer) -
Method Summary
Modifier and TypeMethodDescriptionvoidopen(org.apache.flink.configuration.Configuration parameters, ClassLoader userCodeClassLoader) protected booleanMethods inherited from class org.apache.flink.table.runtime.functions.table.lookup.fullcache.CacheLoader
awaitFirstLoad, close, getCache, initializeMetrics, reloadAsync
-
Constructor Details
-
InputFormatCacheLoader
public InputFormatCacheLoader(org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData, ?> initialInputFormat, GenericRowDataKeySelector keySelector, RowDataSerializer cacheEntriesSerializer)
-
-
Method Details
-
open
public void open(org.apache.flink.configuration.Configuration parameters, ClassLoader userCodeClassLoader) throws Exception - Overrides:
openin classCacheLoader- Throws:
Exception
-
updateCache
- Specified by:
updateCachein classCacheLoader- Returns:
- whether reload was successful and was not interrupted.
- Throws:
Exception
-