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
public class InputFormatCacheLoader extends CacheLoader
CacheLoaderthat usedInputFormatfor loading data into the cache.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.flink.table.runtime.functions.table.lookup.fullcache.CacheLoader
cache, isStopped, TIMEOUT_AFTER_INTERRUPT_MS
-
-
Constructor Summary
Constructors Constructor Description InputFormatCacheLoader(org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,?> initialInputFormat, GenericRowDataKeySelector keySelector, RowDataSerializer cacheEntriesSerializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidopen(org.apache.flink.configuration.Configuration parameters, ClassLoader userCodeClassLoader)protected booleanupdateCache()-
Methods inherited from class org.apache.flink.table.runtime.functions.table.lookup.fullcache.CacheLoader
awaitFirstLoad, close, getCache, initializeMetrics, reloadAsync
-
-
-
-
Constructor Detail
-
InputFormatCacheLoader
public InputFormatCacheLoader(org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,?> initialInputFormat, GenericRowDataKeySelector keySelector, RowDataSerializer cacheEntriesSerializer)
-
-
Method Detail
-
open
public void open(org.apache.flink.configuration.Configuration parameters, ClassLoader userCodeClassLoader) throws Exception- Overrides:
openin classCacheLoader- Throws:
Exception
-
updateCache
protected boolean updateCache() throws Exception- Specified by:
updateCachein classCacheLoader- Returns:
- whether reload was successful and was not interrupted.
- Throws:
Exception
-
-