Package com.tangosol.util
Enum 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>
- 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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURED
FIXED
STANDARD
UNINITIALIZED
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleMapIndex.IndexCalculator.CalculatorState
valueOf(String name)
Returns the enum constant of this type with the specified name.static SimpleMapIndex.IndexCalculator.CalculatorState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNINITIALIZED
public static final SimpleMapIndex.IndexCalculator.CalculatorState UNINITIALIZED
-
UNKNOWN
public static final SimpleMapIndex.IndexCalculator.CalculatorState UNKNOWN
-
FIXED
public static final SimpleMapIndex.IndexCalculator.CalculatorState FIXED
-
STANDARD
public static final SimpleMapIndex.IndexCalculator.CalculatorState STANDARD
-
CONFIGURED
public static final SimpleMapIndex.IndexCalculator.CalculatorState CONFIGURED
-
-
Method Detail
-
values
public static SimpleMapIndex.IndexCalculator.CalculatorState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SimpleMapIndex.IndexCalculator.CalculatorState c : SimpleMapIndex.IndexCalculator.CalculatorState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimpleMapIndex.IndexCalculator.CalculatorState valueOf(String name)
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
-
-