Data Types#

Logical data types for Vortex arrays. DType represents a logical type, and PType enumerates the physical primitive types.

PType#

enum class vortex::PType : uint8_t#

Values:

enumerator U8#
enumerator U16#
enumerator U32#
enumerator U64#
enumerator I8#
enumerator I16#
enumerator I32#
enumerator I64#
enumerator F16#
enumerator F32#
enumerator F64#

DType#

namespace dtype#

Functions

DType null()#
DType bool_(bool nullable = false)#
DType primitive(PType ptype, bool nullable = false)#
DType int8(bool nullable = false)#
DType int16(bool nullable = false)#
DType int32(bool nullable = false)#
DType int64(bool nullable = false)#
DType uint8(bool nullable = false)#
DType uint16(bool nullable = false)#
DType uint32(bool nullable = false)#
DType uint64(bool nullable = false)#
DType float16(bool nullable = false)#
DType float32(bool nullable = false)#
DType float64(bool nullable = false)#
DType decimal(uint8_t precision = 10, int8_t scale = 0, bool nullable = false)#
DType utf8(bool nullable = false)#
DType binary(bool nullable = false)#
DType from_arrow(struct ArrowSchema &schema, bool non_nullable = false)#

TODO: Other DTypes are only supported by creating from Arrow for now.

class DType#
#include <dtype.hpp>

Public Functions

DType() = delete#
inline explicit DType(rust::Box<ffi::DType> impl)#
DType(DType &&other) noexcept = default#
DType &operator=(DType &&other) = default#
~DType() = default#
DType(const DType&) = delete#
DType &operator=(const DType&) = delete#
std::string ToString() const#
inline const rust::Box<ffi::DType> &GetImpl()#