Class DefaultLookupCache

    • Method Detail

      • fromConfig

        public static DefaultLookupCache fromConfig​(org.apache.flink.configuration.ReadableConfig config)
      • open

        public void open​(org.apache.flink.metrics.groups.CacheMetricGroup metricGroup)
        Description copied from interface: LookupCache
        Initialize the cache.
        Specified by:
        open in interface LookupCache
        Parameters:
        metricGroup - the metric group to register cache related metrics.
      • put

        public Collection<RowData> put​(RowData key,
                                       Collection<RowData> value)
        Description copied from interface: LookupCache
        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.
        Specified by:
        put in interface LookupCache
        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

        public void invalidate​(RowData key)
        Description copied from interface: LookupCache
        Discards any cached value for the specified key.
        Specified by:
        invalidate in interface LookupCache
      • size

        public long size()
        Description copied from interface: LookupCache
        Returns the number of key-value mappings in the cache.
        Specified by:
        size in interface LookupCache
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object