Class RankedSet.Config

java.lang.Object
com.apple.foundationdb.async.RankedSet.Config
Enclosing class:
RankedSet

public static class RankedSet.Config extends Object
Configuration settings for a RankedSet.
  • Constructor Details

    • Config

      protected Config()
    • Config

      protected Config(RankedSet.HashFunction hashFunction, int nlevels, boolean countDuplicates)
  • Method Details

    • getHashFunction

      public RankedSet.HashFunction getHashFunction()
      Get the hash function to use.
      Returns:
      a RankedSet.HashFunction used to convert keys to a bit mask used to determine level splits in the skip list
    • getNLevels

      public int getNLevels()
      Get the number of levels to use.
      Returns:
      the number of levels in the skip list
    • isCountDuplicates

      public boolean isCountDuplicates()
      Get whether duplicate entries increase ranks below them.
      Returns:
      true if duplicates are counted separately
    • toBuilder

      public RankedSet.ConfigBuilder toBuilder()