Package com.apple.foundationdb.async
Class RankedSet.Config
java.lang.Object
com.apple.foundationdb.async.RankedSet.Config
- Enclosing class:
- RankedSet
Configuration settings for a
RankedSet
.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Config()
protected
Config
(RankedSet.HashFunction hashFunction, int nlevels, boolean countDuplicates) -
Method Summary
Modifier and TypeMethodDescriptionGet the hash function to use.int
Get the number of levels to use.boolean
Get whether duplicate entries increase ranks below them.
-
Constructor Details
-
Config
protected Config() -
Config
-
-
Method Details
-
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
-