Enum ComputeOperationType
- java.lang.Object
-
- java.lang.Enum<ComputeOperationType>
-
- com.linkedin.venice.compute.protocol.request.enums.ComputeOperationType
-
- All Implemented Interfaces:
VeniceEnumValue
,java.io.Serializable
,java.lang.Comparable<ComputeOperationType>
public enum ComputeOperationType extends java.lang.Enum<ComputeOperationType> implements VeniceEnumValue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COSINE_SIMILARITY
COUNT
DOT_PRODUCT
HADAMARD_PRODUCT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getNewInstance()
ReadComputeOperator
getOperator()
int
getValue()
static ComputeOperationType
valueOf(int value)
Returns the enum constant of this type with the specified name.static ComputeOperationType
valueOf(ComputeOperation operation)
Returns the enum constant of this type with the specified name.static ComputeOperationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ComputeOperationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOT_PRODUCT
public static final ComputeOperationType DOT_PRODUCT
-
COSINE_SIMILARITY
public static final ComputeOperationType COSINE_SIMILARITY
-
HADAMARD_PRODUCT
public static final ComputeOperationType HADAMARD_PRODUCT
-
COUNT
public static final ComputeOperationType COUNT
-
-
Method Detail
-
values
public static ComputeOperationType[] 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 (ComputeOperationType c : ComputeOperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComputeOperationType 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
-
getNewInstance
public java.lang.Object getNewInstance()
-
valueOf
public static ComputeOperationType valueOf(int value)
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
-
valueOf
public static ComputeOperationType valueOf(ComputeOperation operation)
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:
operation
- 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
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceVeniceEnumValue
-
getOperator
public ReadComputeOperator getOperator()
-
-