Package com.carrotsearch.hppc
Class HashContainers
- java.lang.Object
-
- com.carrotsearch.hppc.HashContainers
-
public final class HashContainers extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static floatDEFAULT_LOAD_FACTORDefault load factor.static intMAX_HASH_ARRAY_LENGTHMaximum array size for hash containers (power-of-two and still allocable in Java, not a negative int).static floatMAX_LOAD_FACTORMaximum sane load factor (1 empty slot per 100).static intMIN_HASH_ARRAY_LENGTHMinimum hash buffer size.static floatMIN_LOAD_FACTORMinimal sane load factor (99 empty slots per 100).
-
Constructor Summary
Constructors Constructor Description HashContainers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intmaxElements(double loadFactor)Compute and return the maximum number of elements (inclusive) that can be stored in a hash container for a given load factor.
-
-
-
Field Detail
-
MAX_HASH_ARRAY_LENGTH
public static final int MAX_HASH_ARRAY_LENGTH
Maximum array size for hash containers (power-of-two and still allocable in Java, not a negative int).- See Also:
- Constant Field Values
-
MIN_HASH_ARRAY_LENGTH
public static final int MIN_HASH_ARRAY_LENGTH
Minimum hash buffer size.- See Also:
- Constant Field Values
-
DEFAULT_LOAD_FACTOR
public static final float DEFAULT_LOAD_FACTOR
Default load factor.- See Also:
- Constant Field Values
-
MIN_LOAD_FACTOR
public static final float MIN_LOAD_FACTOR
Minimal sane load factor (99 empty slots per 100).- See Also:
- Constant Field Values
-
MAX_LOAD_FACTOR
public static final float MAX_LOAD_FACTOR
Maximum sane load factor (1 empty slot per 100).- See Also:
- Constant Field Values
-
-