#[repr(u32)]pub enum DataType {
Show 29 variants
Undefined = 0,
Binary = 1,
String = 2,
Bool = 3,
Int32 = 4,
Int64 = 5,
Uint32 = 6,
Uint64 = 7,
Float = 8,
Double = 9,
VectorBinary32 = 20,
VectorBinary64 = 21,
VectorFp16 = 22,
VectorFp32 = 23,
VectorFp64 = 24,
VectorInt4 = 25,
VectorInt8 = 26,
VectorInt16 = 27,
SparseVectorFp16 = 30,
SparseVectorFp32 = 31,
ArrayBinary = 40,
ArrayString = 41,
ArrayBool = 42,
ArrayInt32 = 43,
ArrayInt64 = 44,
ArrayUint32 = 45,
ArrayUint64 = 46,
ArrayFloat = 47,
ArrayDouble = 48,
}Expand description
Data type of a field in a zvec collection.
Variants§
Undefined = 0
Undefined or unknown type.
Binary = 1
Raw binary data (arbitrary bytes).
String = 2
UTF-8 encoded string.
Bool = 3
Boolean value.
Int32 = 4
32-bit signed integer.
Int64 = 5
64-bit signed integer.
Uint32 = 6
32-bit unsigned integer.
Uint64 = 7
64-bit unsigned integer.
Float = 8
32-bit floating point (single precision).
Double = 9
64-bit floating point (double precision).
VectorBinary32 = 20
Dense binary vector with 32-bit packing.
VectorBinary64 = 21
Dense binary vector with 64-bit packing.
VectorFp16 = 22
Dense vector with 16-bit floating point elements (half precision).
VectorFp32 = 23
Dense vector with 32-bit floating point elements (single precision).
VectorFp64 = 24
Dense vector with 64-bit floating point elements (double precision).
VectorInt4 = 25
Dense vector with 4-bit integer elements (packed, 2 values per byte).
VectorInt8 = 26
Dense vector with 8-bit integer elements.
VectorInt16 = 27
Dense vector with 16-bit integer elements.
SparseVectorFp16 = 30
Sparse vector with 16-bit floating point values.
SparseVectorFp32 = 31
Sparse vector with 32-bit floating point values.
ArrayBinary = 40
Array of binary data.
ArrayString = 41
Array of strings.
ArrayBool = 42
Array of booleans.
ArrayInt32 = 43
Array of 32-bit signed integers.
ArrayInt64 = 44
Array of 64-bit signed integers.
ArrayUint32 = 45
Array of 32-bit unsigned integers.
ArrayUint64 = 46
Array of 64-bit unsigned integers.
ArrayFloat = 47
Array of 32-bit floating point values.
ArrayDouble = 48
Array of 64-bit floating point values.