Enum Class FieldType.MultiValueSelector

java.lang.Object
java.lang.Enum<FieldType.MultiValueSelector>
org.apache.solr.schema.FieldType.MultiValueSelector
All Implemented Interfaces:
Serializable, Comparable<FieldType.MultiValueSelector>, Constable
Enclosing class:
FieldType

public static enum FieldType.MultiValueSelector extends Enum<FieldType.MultiValueSelector>
An enumeration representing various options that may exist for selecting a single value from a multivalued field. This class is designed to be an abstract representation, agnostic of some of the underlying specifics. Not all enum value are garunteeded work in all contexts -- null checks must be dont by the caller for the specific methods needed.
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static FieldType.MultiValueSelector[] 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 FieldType.MultiValueSelector 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FieldType.MultiValueSelector>
    • getSortedSetSelectorType

      public org.apache.lucene.search.SortedSetSelector.Type getSortedSetSelectorType()
      The appropriate SortedSetSelector.Type option for this MultiValueSelector , may be null if there is no equivalent
    • getSortedNumericSelectorType

      public org.apache.lucene.search.SortedNumericSelector.Type getSortedNumericSelectorType()
      The appropriate SortedNumericSelector.Type option for this MultiValueSelector, may be null if there is no equivalent
    • lookup

      public static FieldType.MultiValueSelector lookup(String label)
      Returns a MultiValueSelector matching the specified (case insensitive) label, or null if no corrisponding MultiValueSelector exists.
      Parameters:
      label - a non null label to be checked for a corrisponding MultiValueSelector
      Returns:
      a MultiValueSelector or null if no MultiValueSelector matches the specified label