@PublicEvolving public class DefaultLookupCache extends Object implements LookupCache
LookupCache.| 限定符和类型 | 类和说明 |
|---|---|
static class |
DefaultLookupCache.Builder
Builder for
DefaultLookupCache. |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 LookupCachemetricGroup - the metric group to register cache related metrics.@Nullable public Collection<RowData> getIfPresent(RowData key)
LookupCachegetIfPresent 在接口中 LookupCachepublic Collection<RowData> put(RowData key, Collection<RowData> value)
LookupCacheput 在接口中 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 在接口中 LookupCachepublic long size()
LookupCachesize 在接口中 LookupCachepublic void close()
throws Exception
close 在接口中 AutoCloseableExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.