Package com.yahoo.vespa.documentmodel
Enum SearchField.Feature
- java.lang.Object
-
- java.lang.Enum<SearchField.Feature>
-
- com.yahoo.vespa.documentmodel.SearchField.Feature
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SearchField.Feature>
- Enclosing class:
- SearchField
public static enum SearchField.Feature extends java.lang.Enum<SearchField.Feature>
This is a representation of features to generate for this field. It can be both optimize hints, and real functional hints.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FILTER_ONLY
WEIGHT_IN_ATTRIBUTE_POSTINGS
WORDPOS_IN_POSTINGS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
static SearchField.Feature
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SearchField.Feature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WEIGHT_IN_ATTRIBUTE_POSTINGS
public static final SearchField.Feature WEIGHT_IN_ATTRIBUTE_POSTINGS
-
WORDPOS_IN_POSTINGS
public static final SearchField.Feature WORDPOS_IN_POSTINGS
-
FILTER_ONLY
public static final SearchField.Feature FILTER_ONLY
-
-
Method Detail
-
values
public static SearchField.Feature[] 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 (SearchField.Feature c : SearchField.Feature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SearchField.Feature valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
-
-