Enum 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 enum milvus.proto.schema.DataType
    • 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;
      • Float16Vector

        public static final DataType Float16Vector
        Float16Vector = 102;
      • BFloat16Vector

        public static final DataType BFloat16Vector
        BFloat16Vector = 103;
      • SparseFloatVector

        public static final DataType SparseFloatVector
        SparseFloatVector = 104;
      • UNRECOGNIZED

        public static final DataType UNRECOGNIZED
    • 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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        NullPointerException - 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:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        NullPointerException - if the argument is null