Class DefaultLookupCache.Builder
java.lang.Object
org.apache.flink.table.connector.source.lookup.cache.DefaultLookupCache.Builder
- Enclosing class:
- DefaultLookupCache
Builder for
DefaultLookupCache.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates the cache.cacheMissingKey(boolean cacheMissingKey) Specifies whether to cache empty value into the cache.expireAfterAccess(Duration duration) Specifies the duration after an entry is last accessed that it should be automatically removed.expireAfterWrite(Duration duration) Specifies the duration after an entry is created that it should be automatically removed.maximumSize(long maximumSize) Specifies the maximum number of entries of the cache.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expireAfterAccess
Specifies the duration after an entry is last accessed that it should be automatically removed. -
expireAfterWrite
Specifies the duration after an entry is created that it should be automatically removed. -
maximumSize
Specifies the maximum number of entries of the cache. -
cacheMissingKey
Specifies whether to cache empty value into the cache.Please note that "empty" means a collection without any rows in it instead of null. The cache will not accept any null key or value.
-
build
Creates the cache.
-