Enum Attribute.DistanceMetric
- java.lang.Object
-
- java.lang.Enum<Attribute.DistanceMetric>
-
- com.yahoo.searchdefinition.document.Attribute.DistanceMetric
-
- All Implemented Interfaces:
Serializable
,Comparable<Attribute.DistanceMetric>
- Enclosing class:
- Attribute
public static enum Attribute.DistanceMetric extends Enum<Attribute.DistanceMetric>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANGULAR
EUCLIDEAN
GEODEGREES
HAMMING
INNERPRODUCT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Attribute.DistanceMetric
valueOf(String name)
Returns the enum constant of this type with the specified name.static Attribute.DistanceMetric[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EUCLIDEAN
public static final Attribute.DistanceMetric EUCLIDEAN
-
ANGULAR
public static final Attribute.DistanceMetric ANGULAR
-
GEODEGREES
public static final Attribute.DistanceMetric GEODEGREES
-
INNERPRODUCT
public static final Attribute.DistanceMetric INNERPRODUCT
-
HAMMING
public static final Attribute.DistanceMetric HAMMING
-
-
Method Detail
-
values
public static Attribute.DistanceMetric[] 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 (Attribute.DistanceMetric c : Attribute.DistanceMetric.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Attribute.DistanceMetric 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
-
-