Package com.apple.foundationdb.async
Class RankedSet.Config
- java.lang.Object
-
- com.apple.foundationdb.async.RankedSet.Config
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Config()
protected
Config(RankedSet.HashFunction hashFunction, int nlevels, boolean countDuplicates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RankedSet.HashFunction
getHashFunction()
Get the hash function to use.int
getNLevels()
Get the number of levels to use.boolean
isCountDuplicates()
Get whether duplicate entries increase ranks below them.RankedSet.ConfigBuilder
toBuilder()
-
-
-
Constructor Detail
-
Config
protected Config()
-
Config
protected Config(RankedSet.HashFunction hashFunction, int nlevels, boolean countDuplicates)
-
-
Method Detail
-
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()
-
-