Interface LookupCache

    • Method Detail

      • open

        void open​(org.apache.flink.metrics.groups.CacheMetricGroup metricGroup)
        Initialize the cache.
        Parameters:
        metricGroup - the metric group to register cache related metrics.
      • getIfPresent

        @Nullable
        Collection<RowData> getIfPresent​(RowData key)
        Returns the value associated with key in this cache, or null if there is no cached value for key.
      • put

        Collection<RowData> put​(RowData key,
                                Collection<RowData> value)
        Associates the specified value rows with the specified key row in the cache. If the cache previously contained value associated with the key, the old value is replaced by the specified value.
        Parameters:
        key - - key row with which the specified value is to be associated
        value - – value rows to be associated with the specified key
        Returns:
        the previous value rows associated with key, or null if there was no mapping for key.
      • invalidate

        void invalidate​(RowData key)
        Discards any cached value for the specified key.
      • size

        long size()
        Returns the number of key-value mappings in the cache.