Class KVNavigableSet

All Implemented Interfaces:
Iterable<ByteData>, Collection<ByteData>, NavigableSet<ByteData>, Set<ByteData>, SortedSet<ByteData>

public class KVNavigableSet extends AbstractKVNavigableSet<ByteData>
A NavigableSet view of the keys in a KVStore.

Instances are mutable, with these exceptions:

  • Constructor Details

    • KVNavigableSet

      public KVNavigableSet(KVStore kv)
      Constructor for when there are no range restrictions.
      Parameters:
      kv - underlying KVStore
    • KVNavigableSet

      public KVNavigableSet(KVStore kv, ByteData prefix)
      Constructor for when the range of visible KVStore keys is all keys sharing a given byte[] prefix.
      Parameters:
      kv - underlying KVStore
      prefix - prefix defining minimum and maximum keys
      Throws:
      NullPointerException - if prefix is null
    • KVNavigableSet

      protected KVNavigableSet(KVStore kv, boolean reversed, KeyRange keyRange, KeyFilter keyFilter)
      Primary constructor.
      Parameters:
      kv - underlying KVStore
      reversed - whether ordering is reversed
      keyRange - key range restriction, or null for none
      keyFilter - key filter, or null for none
      Throws:
      IllegalArgumentException - if kv is null
  • Method Details