Package org.apache.datasketches
Enum ResizeFactor
- All Implemented Interfaces:
Serializable,Comparable<ResizeFactor>,Constable
public enum ResizeFactor extends Enum<ResizeFactor>
For the Families that accept this configuration parameter, it controls the size multiple that
affects how fast the internal cache grows, when more space is required.
See Resize Factor
- Author:
- Lee Rhodes
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static ResizeFactorgetRF(int lg)Returns the Resize Factor given the Log-base 2 of the Resize FactorintgetValue()Returns the Resize Factorintlg()Returns the Log-base 2 of the Resize Factorstatic ResizeFactorvalueOf(String name)Returns the enum constant of this type with the specified name.static ResizeFactor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
lg
public int lg()Returns the Log-base 2 of the Resize Factor- Returns:
- the Log-base 2 of the Resize Factor
-
getRF
Returns the Resize Factor given the Log-base 2 of the Resize Factor- Parameters:
lg- a value between zero and 3, inclusive.- Returns:
- the Resize Factor given the Log-base 2 of the Resize Factor
-
getValue
public int getValue()Returns the Resize Factor- Returns:
- the Resize Factor
-