Enum Class PartitionEvaluator.Decision

java.lang.Object
java.lang.Enum<PartitionEvaluator.Decision>
com.apple.foundationdb.kmeans.PartitionEvaluator.Decision
All Implemented Interfaces:
Serializable, Comparable<PartitionEvaluator.Decision>, Constable
Enclosing class:
PartitionEvaluator

public static enum PartitionEvaluator.Decision extends Enum<PartitionEvaluator.Decision>
  • Enum Constant Details

    • KEEP_CURRENT

      public static final PartitionEvaluator.Decision KEEP_CURRENT
      The candidate is admissible but not better than the current partition.
    • ACCEPT_CANDIDATE

      public static final PartitionEvaluator.Decision ACCEPT_CANDIDATE
      The candidate improves on the current partition by enough to justify replacement.
    • INVALID_CANDIDATE

      public static final PartitionEvaluator.Decision INVALID_CANDIDATE
      The candidate is structurally invalid (e.g. cluster too small relative to threshold).
  • Method Details

    • values

      public static PartitionEvaluator.Decision[] 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

      public static PartitionEvaluator.Decision valueOf(String name)
      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 name
      NullPointerException - if the argument is null