Package org.vitrivr.cottontail.grpc
Enum CottontailGrpc.Knn.Distance
- java.lang.Object
-
- java.lang.Enum<CottontailGrpc.Knn.Distance>
-
- org.vitrivr.cottontail.grpc.CottontailGrpc.Knn.Distance
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<CottontailGrpc.Knn.Distance>
- Enclosing class:
- CottontailGrpc.Knn
public static enum CottontailGrpc.Knn.Distance extends java.lang.Enum<CottontailGrpc.Knn.Distance> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumorg.vitrivr.cottontail.grpc.Knn.Distance
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHISQUAREDCHISQUARED = 4;COSINECOSINE = 6;HAMMINGHAMMING = 5;HAVERSINEHAVERSINE = 10;INNERPRODUCTINNERPRODUCT = 7;L1L1 = 0;L2L2 = 1;L2SQUAREDL2SQUARED = 2;LPLP = 3;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCHISQUARED_VALUECHISQUARED = 4;static intCOSINE_VALUECOSINE = 6;static intHAMMING_VALUEHAMMING = 5;static intHAVERSINE_VALUEHAVERSINE = 10;static intINNERPRODUCT_VALUEINNERPRODUCT = 7;static intL1_VALUEL1 = 0;static intL2_VALUEL2 = 1;static intL2SQUARED_VALUEL2SQUARED = 2;static intLP_VALUELP = 3;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CottontailGrpc.Knn.DistanceforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<CottontailGrpc.Knn.Distance>internalGetValueMap()static CottontailGrpc.Knn.DistancevalueOf(int value)Deprecated.static CottontailGrpc.Knn.DistancevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static CottontailGrpc.Knn.DistancevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CottontailGrpc.Knn.Distance[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
L1
public static final CottontailGrpc.Knn.Distance L1
L1 = 0;
-
L2
public static final CottontailGrpc.Knn.Distance L2
L2 = 1;
-
L2SQUARED
public static final CottontailGrpc.Knn.Distance L2SQUARED
L2SQUARED = 2;
-
LP
public static final CottontailGrpc.Knn.Distance LP
LP = 3;
-
CHISQUARED
public static final CottontailGrpc.Knn.Distance CHISQUARED
CHISQUARED = 4;
-
HAMMING
public static final CottontailGrpc.Knn.Distance HAMMING
HAMMING = 5;
-
COSINE
public static final CottontailGrpc.Knn.Distance COSINE
COSINE = 6;
-
INNERPRODUCT
public static final CottontailGrpc.Knn.Distance INNERPRODUCT
INNERPRODUCT = 7;
-
HAVERSINE
public static final CottontailGrpc.Knn.Distance HAVERSINE
HAVERSINE = 10;
-
UNRECOGNIZED
public static final CottontailGrpc.Knn.Distance UNRECOGNIZED
-
-
Field Detail
-
L1_VALUE
public static final int L1_VALUE
L1 = 0;- See Also:
- Constant Field Values
-
L2_VALUE
public static final int L2_VALUE
L2 = 1;- See Also:
- Constant Field Values
-
L2SQUARED_VALUE
public static final int L2SQUARED_VALUE
L2SQUARED = 2;- See Also:
- Constant Field Values
-
LP_VALUE
public static final int LP_VALUE
LP = 3;- See Also:
- Constant Field Values
-
CHISQUARED_VALUE
public static final int CHISQUARED_VALUE
CHISQUARED = 4;- See Also:
- Constant Field Values
-
HAMMING_VALUE
public static final int HAMMING_VALUE
HAMMING = 5;- See Also:
- Constant Field Values
-
COSINE_VALUE
public static final int COSINE_VALUE
COSINE = 6;- See Also:
- Constant Field Values
-
INNERPRODUCT_VALUE
public static final int INNERPRODUCT_VALUE
INNERPRODUCT = 7;- See Also:
- Constant Field Values
-
HAVERSINE_VALUE
public static final int HAVERSINE_VALUE
HAVERSINE = 10;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CottontailGrpc.Knn.Distance[] 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 (CottontailGrpc.Knn.Distance c : CottontailGrpc.Knn.Distance.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CottontailGrpc.Knn.Distance 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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static CottontailGrpc.Knn.Distance valueOf(int value)
Deprecated.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:
value- 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
-
forNumber
public static CottontailGrpc.Knn.Distance forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<CottontailGrpc.Knn.Distance> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static CottontailGrpc.Knn.Distance valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc- 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
-
-