Package com.yahoo.searchdefinition
Enum RankProfile.RankSetting.Type
- java.lang.Object
-
- java.lang.Enum<RankProfile.RankSetting.Type>
-
- com.yahoo.searchdefinition.RankProfile.RankSetting.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<RankProfile.RankSetting.Type>
- Enclosing class:
- RankProfile.RankSetting
public static enum RankProfile.RankSetting.Type extends Enum<RankProfile.RankSetting.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LITERALBOOST
PREFERBITVECTOR
RANKTYPE
WEIGHT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of this typeboolean
isIndexLevel()
True if this setting really pertains to an index, not a field within an indexString
toString()
static RankProfile.RankSetting.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static RankProfile.RankSetting.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RANKTYPE
public static final RankProfile.RankSetting.Type RANKTYPE
-
LITERALBOOST
public static final RankProfile.RankSetting.Type LITERALBOOST
-
WEIGHT
public static final RankProfile.RankSetting.Type WEIGHT
-
PREFERBITVECTOR
public static final RankProfile.RankSetting.Type PREFERBITVECTOR
-
-
Method Detail
-
values
public static RankProfile.RankSetting.Type[] 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 (RankProfile.RankSetting.Type c : RankProfile.RankSetting.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RankProfile.RankSetting.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isIndexLevel
public boolean isIndexLevel()
True if this setting really pertains to an index, not a field within an index
-
getName
public String getName()
Returns the name of this type
-
toString
public String toString()
- Overrides:
toString
in classEnum<RankProfile.RankSetting.Type>
-
-