Class ReadOnlyKeyValueStoreFacade<K,​V>

    • Method Detail

      • get

        public V get​(K key)
        Description copied from interface: ReadOnlyKeyValueStore
        Get the value corresponding to this key.
        Specified by:
        get in interface ReadOnlyKeyValueStore<K,​V>
        Parameters:
        key - The key to fetch
        Returns:
        The value or null if no value is found.
      • range

        public KeyValueIterator<K,​V> range​(K from,
                                                 K to)
        Description copied from interface: ReadOnlyKeyValueStore
        Get an iterator over a given range of keys. This iterator must be closed after use. The returned iterator must be safe from ConcurrentModificationExceptions and must not return null values. No ordering guarantees are provided.
        Specified by:
        range in interface ReadOnlyKeyValueStore<K,​V>
        Parameters:
        from - The first key that could be in the range
        to - The last key that could be in the range
        Returns:
        The iterator for this range.
      • approximateNumEntries

        public long approximateNumEntries()
        Description copied from interface: ReadOnlyKeyValueStore
        Return an approximate count of key-value mappings in this store. The count is not guaranteed to be exact in order to accommodate stores where an exact count is expensive to calculate.
        Specified by:
        approximateNumEntries in interface ReadOnlyKeyValueStore<K,​V>
        Returns:
        an approximate count of key-value mappings in the store.