Interface AsyncConsistentTreeMap<V>

    • Method Detail

      • firstKey

        CompletableFuture<String> firstKey()
        Return the lowest key in the map.
        Returns:
        the key or null if none exist
      • lastKey

        CompletableFuture<String> lastKey()
        Return the highest key in the map.
        Returns:
        the key or null if none exist
      • ceilingEntry

        CompletableFuture<Map.Entry<String,​Versioned<V>>> ceilingEntry​(String key)
        Returns the entry associated with the least key greater than or equal to the key.
        Parameters:
        key - the key
        Returns:
        the entry or null if no suitable key exists
      • floorEntry

        CompletableFuture<Map.Entry<String,​Versioned<V>>> floorEntry​(String key)
        Returns the entry associated with the greatest key less than or equal to key.
        Parameters:
        key - the key
        Returns:
        the entry or null if no suitable key exists
      • higherEntry

        CompletableFuture<Map.Entry<String,​Versioned<V>>> higherEntry​(String key)
        Returns the entry associated with the least key greater than key.
        Parameters:
        key - the key
        Returns:
        the entry or null if no suitable key exists
      • lowerKey

        CompletableFuture<String> lowerKey​(String key)
        Return the entry associated with the greatest key less than key.
        Parameters:
        key - the key
        Returns:
        the entry or null if no suitable key exists
      • floorKey

        CompletableFuture<String> floorKey​(String key)
        Return the highest key less than or equal to key.
        Parameters:
        key - the key
        Returns:
        the entry or null if no suitable key exists
      • ceilingKey

        CompletableFuture<String> ceilingKey​(String key)
        Return the lowest key greater than or equal to key.
        Parameters:
        key - the key
        Returns:
        the entry or null if no suitable key exists
      • higherKey

        CompletableFuture<String> higherKey​(String key)
        Return the lowest key greater than key.
        Parameters:
        key - the key
        Returns:
        the entry or null if no suitable key exists
      • subMap

        CompletableFuture<NavigableMap<String,​V>> subMap​(String upperKey,
                                                               String lowerKey,
                                                               boolean inclusiveUpper,
                                                               boolean inclusiveLower)
        Returns a navigable map containing the entries from the original map which are larger than (or if specified equal to) lowerKey AND less than (or if specified equal to) upperKey.
        Parameters:
        upperKey - the upper bound for the keys in this map
        lowerKey - the lower bound for the keys in this map
        inclusiveUpper - whether keys equal to the upperKey should be included
        inclusiveLower - whether keys equal to the lowerKey should be included
        Returns:
        a navigable map containing entries in the specified range (this may be empty)