@PublicEvolving public class DefaultLookupCache extends Object implements LookupCache
LookupCache.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultLookupCache.Builder
Builder for
DefaultLookupCache. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(Object o) |
static DefaultLookupCache |
fromConfig(org.apache.flink.configuration.ReadableConfig config) |
Collection<RowData> |
getIfPresent(RowData key)
Returns the value associated with key in this cache, or null if there is no cached value for
key.
|
int |
hashCode() |
void |
invalidate(RowData key)
Discards any cached value for the specified key.
|
static DefaultLookupCache.Builder |
newBuilder()
Creates a builder for the cache.
|
void |
open(org.apache.flink.metrics.groups.CacheMetricGroup metricGroup)
Initialize the cache.
|
Collection<RowData> |
put(RowData key,
Collection<RowData> value)
Associates the specified value rows with the specified key row in the cache.
|
long |
size()
Returns the number of key-value mappings in the cache.
|
public static DefaultLookupCache.Builder newBuilder()
public static DefaultLookupCache fromConfig(org.apache.flink.configuration.ReadableConfig config)
public void open(org.apache.flink.metrics.groups.CacheMetricGroup metricGroup)
LookupCacheopen in interface LookupCachemetricGroup - the metric group to register cache related metrics.@Nullable public Collection<RowData> getIfPresent(RowData key)
LookupCachegetIfPresent in interface LookupCachepublic Collection<RowData> put(RowData key, Collection<RowData> value)
LookupCacheput in interface LookupCachekey - - key row with which the specified value is to be associatedvalue - – value rows to be associated with the specified keypublic void invalidate(RowData key)
LookupCacheinvalidate in interface LookupCachepublic long size()
LookupCachesize in interface LookupCachepublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.