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.