Package io.milvus.grpc
Enum DataType
- java.lang.Object
-
- java.lang.Enum<DataType>
-
- io.milvus.grpc.DataType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DataType>
public enum DataType extends Enum<DataType> implements com.google.protobuf.ProtocolMessageEnum
@brief Field data type
Protobuf enummilvus.proto.schema.DataType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ArrayArray = 22;BinaryVectorBinaryVector = 100;BoolBool = 1;DoubleDouble = 11;FloatFloat = 10;FloatVectorFloatVector = 101;Int16Int16 = 3;Int32Int32 = 4;Int64Int64 = 5;Int8Int8 = 2;JSONJSON = 23;NoneNone = 0;StringString = 20;UNRECOGNIZEDVarCharvariable-length strings with a specified maximum length
-
Field Summary
Fields Modifier and Type Field Description static intArray_VALUEArray = 22;static intBinaryVector_VALUEBinaryVector = 100;static intBool_VALUEBool = 1;static intDouble_VALUEDouble = 11;static intFloat_VALUEFloat = 10;static intFloatVector_VALUEFloatVector = 101;static intInt16_VALUEInt16 = 3;static intInt32_VALUEInt32 = 4;static intInt64_VALUEInt64 = 5;static intInt8_VALUEInt8 = 2;static intJSON_VALUEJSON = 23;static intNone_VALUENone = 0;static intString_VALUEString = 20;static intVarChar_VALUEvariable-length strings with a specified maximum length
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DataTypeforNumber(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<DataType>internalGetValueMap()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 DataTypevalueOf(String name)Returns 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 Detail
-
None
public static final DataType None
None = 0;
-
Bool
public static final DataType Bool
Bool = 1;
-
Int8
public static final DataType Int8
Int8 = 2;
-
Int16
public static final DataType Int16
Int16 = 3;
-
Int32
public static final DataType Int32
Int32 = 4;
-
Int64
public static final DataType Int64
Int64 = 5;
-
Float
public static final DataType Float
Float = 10;
-
Double
public static final DataType Double
Double = 11;
-
String
public static final DataType String
String = 20;
-
VarChar
public static final DataType VarChar
variable-length strings with a specified maximum length
VarChar = 21;
-
Array
public static final DataType Array
Array = 22;
-
JSON
public static final DataType JSON
JSON = 23;
-
BinaryVector
public static final DataType BinaryVector
BinaryVector = 100;
-
FloatVector
public static final DataType FloatVector
FloatVector = 101;
-
UNRECOGNIZED
public static final DataType UNRECOGNIZED
-
-
Field Detail
-
None_VALUE
public static final int None_VALUE
None = 0;- See Also:
- Constant Field Values
-
Bool_VALUE
public static final int Bool_VALUE
Bool = 1;- See Also:
- Constant Field Values
-
Int8_VALUE
public static final int Int8_VALUE
Int8 = 2;- See Also:
- Constant Field Values
-
Int16_VALUE
public static final int Int16_VALUE
Int16 = 3;- See Also:
- Constant Field Values
-
Int32_VALUE
public static final int Int32_VALUE
Int32 = 4;- See Also:
- Constant Field Values
-
Int64_VALUE
public static final int Int64_VALUE
Int64 = 5;- See Also:
- Constant Field Values
-
Float_VALUE
public static final int Float_VALUE
Float = 10;- See Also:
- Constant Field Values
-
Double_VALUE
public static final int Double_VALUE
Double = 11;- See Also:
- Constant Field Values
-
String_VALUE
public static final int String_VALUE
String = 20;- See Also:
- Constant Field Values
-
VarChar_VALUE
public static final int VarChar_VALUE
variable-length strings with a specified maximum length
VarChar = 21;- See Also:
- Constant Field Values
-
Array_VALUE
public static final int Array_VALUE
Array = 22;- See Also:
- Constant Field Values
-
JSON_VALUE
public static final int JSON_VALUE
JSON = 23;- See Also:
- Constant Field Values
-
BinaryVector_VALUE
public static final int BinaryVector_VALUE
BinaryVector = 100;- See Also:
- Constant Field Values
-
FloatVector_VALUE
public static final int FloatVector_VALUE
FloatVector = 101;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static DataType[] 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 (DataType c : DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataType 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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static DataType 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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static DataType 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<DataType> 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 DataType 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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-