Package com.tangosol.util
Enum Class SimpleMapIndex.IndexCalculator.CalculatorState
java.lang.Object
java.lang.Enum<SimpleMapIndex.IndexCalculator.CalculatorState>
com.tangosol.util.SimpleMapIndex.IndexCalculator.CalculatorState
- All Implemented Interfaces:
Serializable
,Comparable<SimpleMapIndex.IndexCalculator.CalculatorState>
,Constable
- Enclosing class:
SimpleMapIndex.IndexCalculator
public static enum SimpleMapIndex.IndexCalculator.CalculatorState
extends Enum<SimpleMapIndex.IndexCalculator.CalculatorState>
The CalculatorState identifies the method used by the calculator to
calculate the cost of a key or a value type. There are four states:
- UNINITIALIZED - The calculator has not yet been initialized;
- UNKNOWN - The calculator is unable to determine the exact size for
this type. It will either use a pluggable calculator or an
approximation based on the serialized size. The
SimpleMapIndex.IndexCalculator.DEFAULT_SIZE
will be used as a fallback; - FIXED - instances of the key or value will always be of the same size (e.g. int, short, double).
- STANDARD - instances of the key or value type need to be calculated by the unit calculator (e.g. Binary, String).
- CONFIGURED - The configured calculator on the cache where the index is defined will be used to calculate the size.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNINITIALIZED
-
UNKNOWN
-
FIXED
-
STANDARD
-
CONFIGURED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-