Package org.apache.solr.schema
Enum Class FieldType.MultiValueSelector
- All Implemented Interfaces:
Serializable,Comparable<FieldType.MultiValueSelector>,Constable
- Enclosing class:
FieldType
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.SortedNumericSelector.TypeThe appropriateSortedNumericSelector.Typeoption for thisMultiValueSelector, may be null if there is no equivalentorg.apache.lucene.search.SortedSetSelector.TypeThe appropriateSortedSetSelector.Typeoption for thisMultiValueSelector, may be null if there is no equivalentstatic FieldType.MultiValueSelectorReturns a MultiValueSelector matching the specified (case insensitive) label, or null if no corrisponding MultiValueSelector exists.toString()static FieldType.MultiValueSelectorReturns the enum constant of this class with the specified name.static FieldType.MultiValueSelector[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MIN
-
MAX
-
-
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
-
toString
- Overrides:
toStringin classEnum<FieldType.MultiValueSelector>
-
getSortedSetSelectorType
public org.apache.lucene.search.SortedSetSelector.Type getSortedSetSelectorType()The appropriateSortedSetSelector.Typeoption for thisMultiValueSelector, may be null if there is no equivalent -
getSortedNumericSelectorType
public org.apache.lucene.search.SortedNumericSelector.Type getSortedNumericSelectorType()The appropriateSortedNumericSelector.Typeoption for thisMultiValueSelector, may be null if there is no equivalent -
lookup
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
-