Kùzu C++ API
|
#include <value.h>
Classes | |
union | Val |
Public Member Functions | |
KUZU_API | Value (bool val_) |
KUZU_API | Value (int8_t val_) |
KUZU_API | Value (int16_t val_) |
KUZU_API | Value (int32_t val_) |
KUZU_API | Value (int64_t val_) |
KUZU_API | Value (uint8_t val_) |
KUZU_API | Value (uint16_t val_) |
KUZU_API | Value (uint32_t val_) |
KUZU_API | Value (uint64_t val_) |
KUZU_API | Value (int128_t val_) |
KUZU_API | Value (ku_uuid_t val_) |
KUZU_API | Value (double val_) |
KUZU_API | Value (float val_) |
KUZU_API | Value (date_t val_) |
KUZU_API | Value (timestamp_ns_t val_) |
KUZU_API | Value (timestamp_ms_t val_) |
KUZU_API | Value (timestamp_sec_t val_) |
KUZU_API | Value (timestamp_tz_t val_) |
KUZU_API | Value (timestamp_t val_) |
KUZU_API | Value (interval_t val_) |
KUZU_API | Value (internalID_t val_) |
KUZU_API | Value (const char *val_) |
KUZU_API | Value (const std::string &val_) |
KUZU_API | Value (uint8_t *val_) |
KUZU_API | Value (LogicalType type, std::string val_) |
KUZU_API | Value (LogicalType dataType, std::vector< std::unique_ptr< Value > > children) |
KUZU_API | Value (const Value &other) |
KUZU_API | Value (Value &&other)=default |
KUZU_API Value & | operator= (Value &&other)=default |
KUZU_API bool | operator== (const Value &rhs) const |
KUZU_API void | setDataType (const LogicalType &dataType_) |
Sets the data type of the Value. | |
KUZU_API const LogicalType & | getDataType () const |
KUZU_API void | setNull (bool flag) |
Sets the null flag of the Value. | |
KUZU_API void | setNull () |
Sets the null flag of the Value to true. | |
KUZU_API bool | isNull () const |
KUZU_API void | copyFromRowLayout (const uint8_t *value) |
Copies from the row layout value. | |
KUZU_API void | copyFromColLayout (const uint8_t *value, ValueVector *vec=nullptr) |
Copies from the col layout value. | |
KUZU_API void | copyValueFrom (const Value &other) |
Copies from the other. | |
template<class T > | |
T | getValue () const |
template<class T > | |
T & | getValueReference () |
KUZU_API std::unique_ptr< Value > | copy () const |
KUZU_API std::string | toString () const |
KUZU_API void | serialize (Serializer &serializer) const |
void | validateType (common::LogicalTypeID targetTypeID) const |
bool | hasNoneNullChildren () const |
bool | allowTypeChange () const |
uint64_t | computeHash () const |
KUZU_API uint32_t | getChildrenSize () const |
template<> | |
KUZU_API bool | getValue () const |
template<> | |
KUZU_API int8_t | getValue () const |
template<> | |
KUZU_API int16_t | getValue () const |
template<> | |
KUZU_API int32_t | getValue () const |
template<> | |
KUZU_API int64_t | getValue () const |
template<> | |
KUZU_API uint64_t | getValue () const |
template<> | |
KUZU_API uint32_t | getValue () const |
template<> | |
KUZU_API uint16_t | getValue () const |
template<> | |
KUZU_API uint8_t | getValue () const |
template<> | |
KUZU_API int128_t | getValue () const |
template<> | |
KUZU_API float | getValue () const |
template<> | |
KUZU_API double | getValue () const |
template<> | |
KUZU_API date_t | getValue () const |
template<> | |
KUZU_API timestamp_t | getValue () const |
template<> | |
KUZU_API timestamp_ns_t | getValue () const |
template<> | |
KUZU_API timestamp_ms_t | getValue () const |
template<> | |
KUZU_API timestamp_sec_t | getValue () const |
template<> | |
KUZU_API timestamp_tz_t | getValue () const |
template<> | |
KUZU_API interval_t | getValue () const |
template<> | |
KUZU_API internalID_t | getValue () const |
template<> | |
KUZU_API std::string | getValue () const |
template<> | |
KUZU_API uint8_t * | getValue () const |
template<> | |
KUZU_API bool & | getValueReference () |
template<> | |
KUZU_API int8_t & | getValueReference () |
template<> | |
KUZU_API int16_t & | getValueReference () |
template<> | |
KUZU_API int32_t & | getValueReference () |
template<> | |
KUZU_API int64_t & | getValueReference () |
template<> | |
KUZU_API uint8_t & | getValueReference () |
template<> | |
KUZU_API uint16_t & | getValueReference () |
template<> | |
KUZU_API uint32_t & | getValueReference () |
template<> | |
KUZU_API uint64_t & | getValueReference () |
template<> | |
KUZU_API int128_t & | getValueReference () |
template<> | |
KUZU_API float & | getValueReference () |
template<> | |
KUZU_API double & | getValueReference () |
template<> | |
KUZU_API date_t & | getValueReference () |
template<> | |
KUZU_API timestamp_t & | getValueReference () |
template<> | |
KUZU_API timestamp_ms_t & | getValueReference () |
template<> | |
KUZU_API timestamp_ns_t & | getValueReference () |
template<> | |
KUZU_API timestamp_sec_t & | getValueReference () |
template<> | |
KUZU_API timestamp_tz_t & | getValueReference () |
template<> | |
KUZU_API interval_t & | getValueReference () |
template<> | |
KUZU_API nodeID_t & | getValueReference () |
template<> | |
KUZU_API std::string & | getValueReference () |
template<> | |
KUZU_API uint8_t *& | getValueReference () |
template<> | |
KUZU_API Value | createValue (bool val) |
template<> | |
KUZU_API Value | createValue (int8_t val) |
template<> | |
KUZU_API Value | createValue (int16_t val) |
template<> | |
KUZU_API Value | createValue (int32_t val) |
template<> | |
KUZU_API Value | createValue (int64_t val) |
template<> | |
KUZU_API Value | createValue (uint8_t val) |
template<> | |
KUZU_API Value | createValue (uint16_t val) |
template<> | |
KUZU_API Value | createValue (uint32_t val) |
template<> | |
KUZU_API Value | createValue (uint64_t val) |
template<> | |
KUZU_API Value | createValue (int128_t val) |
template<> | |
KUZU_API Value | createValue (double val) |
template<> | |
KUZU_API Value | createValue (date_t val) |
template<> | |
KUZU_API Value | createValue (timestamp_t val) |
template<> | |
KUZU_API Value | createValue (interval_t val) |
template<> | |
KUZU_API Value | createValue (nodeID_t val) |
template<> | |
KUZU_API Value | createValue (std::string val) |
template<> | |
KUZU_API Value | createValue (const char *value) |
template<> | |
KUZU_API Value | createValue (uint8_t *val) |
Static Public Member Functions | |
static KUZU_API Value | createNullValue () |
static KUZU_API Value | createNullValue (const LogicalType &dataType) |
static KUZU_API Value | createDefaultValue (const LogicalType &dataType) |
template<class T > | |
static Value | createValue (T) |
static KUZU_API std::unique_ptr< Value > | deserialize (Deserializer &deserializer) |
Public Attributes | |
union kuzu::common::Value::Val | val |
std::string | strVal |
Friends | |
class | NodeVal |
class | RelVal |
class | NestedVal |
class | RecursiveRelVal |
class | ArrowRowBatch |
class | ValueVector |
|
explicit |
val_ | the boolean value to set. |
|
explicit |
val_ | the int8_t value to set. |
|
explicit |
val_ | the int16_t value to set. |
|
explicit |
val_ | the int32_t value to set. |
|
explicit |
val_ | the int64_t value to set. |
|
explicit |
val_ | the uint8_t value to set. |
|
explicit |
val_ | the uint16_t value to set. |
|
explicit |
val_ | the uint32_t value to set. |
|
explicit |
val_ | the uint64_t value to set. |
val_ | the int128_t value to set. |
val_ | the UUID value to set. |
|
explicit |
val_ | the double value to set. |
|
explicit |
val_ | the float value to set. |
|
explicit |
val_ | the timestamp_ns value to set. |
|
explicit |
val_ | the timestamp_ms value to set. |
|
explicit |
val_ | the timestamp_sec value to set. |
|
explicit |
val_ | the timestamp_tz value to set. |
|
explicit |
val_ | the timestamp value to set. |
|
explicit |
val_ | the interval value to set. |
|
explicit |
val_ | the internalID value to set. |
|
explicit |
val_ | the string value to set. |
|
explicit |
val_ | the string value to set. |
|
explicit |
val_ | the uint8_t* value to set. |
|
explicit |
type | the logical type of the value. |
val_ | the string value to set. |
|
explicit |
dataType | the logical type of the value. |
children | a vector of children values. |
other | the value to move from. |
bool kuzu::common::Value::allowTypeChange | ( | ) | const |
uint64_t kuzu::common::Value::computeHash | ( | ) | const |
KUZU_API void kuzu::common::Value::copyFromColLayout | ( | const uint8_t * | value, |
ValueVector * | vec = nullptr ) |
Copies from the col layout value.
value | value to copy from. |
KUZU_API void kuzu::common::Value::copyFromRowLayout | ( | const uint8_t * | value | ) |
Copies from the row layout value.
value | value to copy from. |
Copies from the other.
other | value to copy from. |
|
static |
dataType | the type of the non-NULL value. |
|
static |
dataType | the type of the NULL value. |
val | the boolean value |
value | the string value |
val | the double value |
val | the int16 value |
val | the int32 value |
val | the int64 value |
|
inline |
val | the interval_t value |
val | the nodeID_t value |
val | the string value |
|
inlinestatic |
|
inline |
val | the timestamp_t value |
val | the uint16 value |
val | the uint32 value |
val | the uint64 value |
val | the uint8_t* val |
val | the uint8 value |
|
static |
|
inline |
KUZU_API const LogicalType & kuzu::common::Value::getDataType | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool kuzu::common::Value::hasNoneNullChildren | ( | ) | const |
KUZU_API void kuzu::common::Value::serialize | ( | Serializer & | serializer | ) | const |
KUZU_API void kuzu::common::Value::setDataType | ( | const LogicalType & | dataType_ | ) |
Sets the data type of the Value.
dataType_ | the data type to set to. |
KUZU_API void kuzu::common::Value::setNull | ( | bool | flag | ) |
Sets the null flag of the Value.
flag | null value flag to set. |
KUZU_API std::string kuzu::common::Value::toString | ( | ) | const |
void kuzu::common::Value::validateType | ( | common::LogicalTypeID | targetTypeID | ) | const |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
std::string kuzu::common::Value::strVal |
union kuzu::common::Value::Val kuzu::common::Value::val |