Package com.azure.cosmos.models
Enum CosmosVectorDataType
- All Implemented Interfaces:
Serializable
,Comparable<CosmosVectorDataType>
,java.lang.constant.Constable
Data types for the embeddings in Cosmos DB database service.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CosmosVectorDataType
fromString
(String value) Method to retrieve the enum constant by its overWireValue.toString()
static CosmosVectorDataType
Returns the enum constant of this type with the specified name.static CosmosVectorDataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INT8
Represents a int8 data type. -
UINT8
Represents a uint8 data type. -
FLOAT16
Represents a float16 data type. -
FLOAT32
Represents a float32 data type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
toString
- Overrides:
toString
in classEnum<CosmosVectorDataType>
-
fromString
Method to retrieve the enum constant by its overWireValue.- Parameters:
value
- the overWire value of the enum constant- Returns:
- the matching CosmosVectorDataType
- Throws:
IllegalArgumentException
- if no matching enum constant is found
-