Package io.milvus.grpc
Enum DataType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DataType>,java.lang.constant.Constable
@brief Field data typeProtobuf enum
milvus.proto.schema.DataType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArray = 22;BFloat16Vector = 103;BinaryVector = 100;Bool = 1;Double = 11;Float = 10;Float16Vector = 102;FloatVector = 101;Int16 = 3;Int32 = 4;Int64 = 5;Int8 = 2;JSON = 23;None = 0;SparseFloatVector = 104;String = 20;variable-length strings with a specified maximum length -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intArray = 22;static final intBFloat16Vector = 103;static final intBinaryVector = 100;static final intBool = 1;static final intDouble = 11;static final intFloat = 10;static final intFloat16Vector = 102;static final intFloatVector = 101;static final intInt16 = 3;static final intInt32 = 4;static final intInt64 = 5;static final intInt8 = 2;static final intJSON = 23;static final intNone = 0;static final intSparseFloatVector = 104;static final intString = 20;static final intvariable-length strings with a specified maximum length -
Method Summary
Modifier and TypeMethodDescriptionstatic DataTypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DataType> static DataTypevalueOf(int value) Deprecated.static DataTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DataTypeReturns the enum constant of this type with the specified name.static DataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
None
None = 0; -
Bool
Bool = 1; -
Int8
Int8 = 2; -
Int16
Int16 = 3; -
Int32
Int32 = 4; -
Int64
Int64 = 5; -
Float
Float = 10; -
Double
Double = 11; -
String
String = 20; -
VarChar
variable-length strings with a specified maximum length
VarChar = 21; -
Array
Array = 22; -
JSON
JSON = 23; -
BinaryVector
BinaryVector = 100; -
FloatVector
FloatVector = 101; -
Float16Vector
Float16Vector = 102; -
BFloat16Vector
BFloat16Vector = 103; -
SparseFloatVector
SparseFloatVector = 104; -
UNRECOGNIZED
-
-
Field Details
-
None_VALUE
public static final int None_VALUENone = 0;- See Also:
-
Bool_VALUE
public static final int Bool_VALUEBool = 1;- See Also:
-
Int8_VALUE
public static final int Int8_VALUEInt8 = 2;- See Also:
-
Int16_VALUE
public static final int Int16_VALUEInt16 = 3;- See Also:
-
Int32_VALUE
public static final int Int32_VALUEInt32 = 4;- See Also:
-
Int64_VALUE
public static final int Int64_VALUEInt64 = 5;- See Also:
-
Float_VALUE
public static final int Float_VALUEFloat = 10;- See Also:
-
Double_VALUE
public static final int Double_VALUEDouble = 11;- See Also:
-
String_VALUE
public static final int String_VALUEString = 20;- See Also:
-
VarChar_VALUE
public static final int VarChar_VALUEvariable-length strings with a specified maximum length
VarChar = 21;- See Also:
-
Array_VALUE
public static final int Array_VALUEArray = 22;- See Also:
-
JSON_VALUE
public static final int JSON_VALUEJSON = 23;- See Also:
-
BinaryVector_VALUE
public static final int BinaryVector_VALUEBinaryVector = 100;- See Also:
-
FloatVector_VALUE
public static final int FloatVector_VALUEFloatVector = 101;- See Also:
-
Float16Vector_VALUE
public static final int Float16Vector_VALUEFloat16Vector = 102;- See Also:
-
BFloat16Vector_VALUE
public static final int BFloat16Vector_VALUEBFloat16Vector = 103;- See Also:
-
SparseFloatVector_VALUE
public static final int SparseFloatVector_VALUESparseFloatVector = 104;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-