Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::common::Value Class Reference

#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 Valueoperator= (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 LogicalTypegetDataType () 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 >
getValue () const
 
template<class T >
T & getValueReference ()
 
KUZU_API std::unique_ptr< Valuecopy () 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_tgetValueReference ()
 
template<>
KUZU_API float & getValueReference ()
 
template<>
KUZU_API double & getValueReference ()
 
template<>
KUZU_API date_tgetValueReference ()
 
template<>
KUZU_API timestamp_tgetValueReference ()
 
template<>
KUZU_API timestamp_ms_tgetValueReference ()
 
template<>
KUZU_API timestamp_ns_tgetValueReference ()
 
template<>
KUZU_API timestamp_sec_tgetValueReference ()
 
template<>
KUZU_API timestamp_tz_tgetValueReference ()
 
template<>
KUZU_API interval_tgetValueReference ()
 
template<>
KUZU_API nodeID_tgetValueReference ()
 
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< Valuedeserialize (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
 

Constructor & Destructor Documentation

◆ Value() [1/28]

KUZU_API kuzu::common::Value::Value ( bool val_)
explicit
Parameters
val_the boolean value to set.

◆ Value() [2/28]

KUZU_API kuzu::common::Value::Value ( int8_t val_)
explicit
Parameters
val_the int8_t value to set.

◆ Value() [3/28]

KUZU_API kuzu::common::Value::Value ( int16_t val_)
explicit
Parameters
val_the int16_t value to set.

◆ Value() [4/28]

KUZU_API kuzu::common::Value::Value ( int32_t val_)
explicit
Parameters
val_the int32_t value to set.

◆ Value() [5/28]

KUZU_API kuzu::common::Value::Value ( int64_t val_)
explicit
Parameters
val_the int64_t value to set.

◆ Value() [6/28]

KUZU_API kuzu::common::Value::Value ( uint8_t val_)
explicit
Parameters
val_the uint8_t value to set.

◆ Value() [7/28]

KUZU_API kuzu::common::Value::Value ( uint16_t val_)
explicit
Parameters
val_the uint16_t value to set.

◆ Value() [8/28]

KUZU_API kuzu::common::Value::Value ( uint32_t val_)
explicit
Parameters
val_the uint32_t value to set.

◆ Value() [9/28]

KUZU_API kuzu::common::Value::Value ( uint64_t val_)
explicit
Parameters
val_the uint64_t value to set.

◆ Value() [10/28]

KUZU_API kuzu::common::Value::Value ( int128_t val_)
explicit
Parameters
val_the int128_t value to set.

◆ Value() [11/28]

KUZU_API kuzu::common::Value::Value ( ku_uuid_t val_)
explicit
Parameters
val_the UUID value to set.

◆ Value() [12/28]

KUZU_API kuzu::common::Value::Value ( double val_)
explicit
Parameters
val_the double value to set.

◆ Value() [13/28]

KUZU_API kuzu::common::Value::Value ( float val_)
explicit
Parameters
val_the float value to set.

◆ Value() [14/28]

KUZU_API kuzu::common::Value::Value ( date_t val_)
explicit
Parameters
val_the date value to set.

◆ Value() [15/28]

KUZU_API kuzu::common::Value::Value ( timestamp_ns_t val_)
explicit
Parameters
val_the timestamp_ns value to set.

◆ Value() [16/28]

KUZU_API kuzu::common::Value::Value ( timestamp_ms_t val_)
explicit
Parameters
val_the timestamp_ms value to set.

◆ Value() [17/28]

KUZU_API kuzu::common::Value::Value ( timestamp_sec_t val_)
explicit
Parameters
val_the timestamp_sec value to set.

◆ Value() [18/28]

KUZU_API kuzu::common::Value::Value ( timestamp_tz_t val_)
explicit
Parameters
val_the timestamp_tz value to set.

◆ Value() [19/28]

KUZU_API kuzu::common::Value::Value ( timestamp_t val_)
explicit
Parameters
val_the timestamp value to set.

◆ Value() [20/28]

KUZU_API kuzu::common::Value::Value ( interval_t val_)
explicit
Parameters
val_the interval value to set.

◆ Value() [21/28]

KUZU_API kuzu::common::Value::Value ( internalID_t val_)
explicit
Parameters
val_the internalID value to set.

◆ Value() [22/28]

KUZU_API kuzu::common::Value::Value ( const char * val_)
explicit
Parameters
val_the string value to set.

◆ Value() [23/28]

KUZU_API kuzu::common::Value::Value ( const std::string & val_)
explicit
Parameters
val_the string value to set.

◆ Value() [24/28]

KUZU_API kuzu::common::Value::Value ( uint8_t * val_)
explicit
Parameters
val_the uint8_t* value to set.

◆ Value() [25/28]

KUZU_API kuzu::common::Value::Value ( LogicalType type,
std::string val_ )
explicit
Parameters
typethe logical type of the value.
val_the string value to set.

◆ Value() [26/28]

KUZU_API kuzu::common::Value::Value ( LogicalType dataType,
std::vector< std::unique_ptr< Value > > children )
explicit
Parameters
dataTypethe logical type of the value.
childrena vector of children values.

◆ Value() [27/28]

KUZU_API kuzu::common::Value::Value ( const Value & other)
Parameters
otherthe value to copy from.

◆ Value() [28/28]

KUZU_API kuzu::common::Value::Value ( Value && other)
default
Parameters
otherthe value to move from.

Member Function Documentation

◆ allowTypeChange()

bool kuzu::common::Value::allowTypeChange ( ) const

◆ computeHash()

uint64_t kuzu::common::Value::computeHash ( ) const

◆ copy()

KUZU_API std::unique_ptr< Value > kuzu::common::Value::copy ( ) const
Returns
a copy of the current value.

◆ copyFromColLayout()

KUZU_API void kuzu::common::Value::copyFromColLayout ( const uint8_t * value,
ValueVector * vec = nullptr )

Copies from the col layout value.

Parameters
valuevalue to copy from.

◆ copyFromRowLayout()

KUZU_API void kuzu::common::Value::copyFromRowLayout ( const uint8_t * value)

Copies from the row layout value.

Parameters
valuevalue to copy from.

◆ copyValueFrom()

KUZU_API void kuzu::common::Value::copyValueFrom ( const Value & other)

Copies from the other.

Parameters
othervalue to copy from.

◆ createDefaultValue()

static KUZU_API Value kuzu::common::Value::createDefaultValue ( const LogicalType & dataType)
static
Parameters
dataTypethe type of the non-NULL value.
Returns
a default non-NULL value of the given type.

◆ createNullValue() [1/2]

static KUZU_API Value kuzu::common::Value::createNullValue ( )
static
Returns
a NULL value of ANY type.

◆ createNullValue() [2/2]

static KUZU_API Value kuzu::common::Value::createNullValue ( const LogicalType & dataType)
static
Parameters
dataTypethe type of the NULL value.
Returns
a NULL value of the given type.

◆ createValue() [1/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( bool val)
inline
Parameters
valthe boolean value
Returns
a Value with BOOL type and val value.

◆ createValue() [2/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( const char * value)
inline
Parameters
valuethe string value
Returns
a Value with STRING type and val value.

◆ createValue() [3/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( date_t val)
inline
Parameters
valthe date_t value
Returns
a Value with DATE type and val value.

◆ createValue() [4/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( double val)
inline
Parameters
valthe double value
Returns
a Value with DOUBLE type and val value.

◆ createValue() [5/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( int128_t val)
inline
Parameters
valthe int128_t value
Returns
a Value with INT128 type and val value.

◆ createValue() [6/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( int16_t val)
inline
Parameters
valthe int16 value
Returns
a Value with INT16 type and val value.

◆ createValue() [7/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( int32_t val)
inline
Parameters
valthe int32 value
Returns
a Value with INT32 type and val value.

◆ createValue() [8/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( int64_t val)
inline
Parameters
valthe int64 value
Returns
a Value with INT64 type and val value.

◆ createValue() [9/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( int8_t val)
inline

◆ createValue() [10/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( interval_t val)
inline
Parameters
valthe interval_t value
Returns
a Value with INTERVAL type and val value.

◆ createValue() [11/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( nodeID_t val)
inline
Parameters
valthe nodeID_t value
Returns
a Value with NODE_ID type and val value.

◆ createValue() [12/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( std::string val)
inline
Parameters
valthe string value
Returns
a Value with type and val value.

◆ createValue() [13/19]

template<class T >
static Value kuzu::common::Value::createValue ( T )
inlinestatic
Returns
a Value object based on value.

◆ createValue() [14/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( timestamp_t val)
inline
Parameters
valthe timestamp_t value
Returns
a Value with TIMESTAMP type and val value.

◆ createValue() [15/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( uint16_t val)
inline
Parameters
valthe uint16 value
Returns
a Value with UINT16 type and val value.

◆ createValue() [16/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( uint32_t val)
inline
Parameters
valthe uint32 value
Returns
a Value with UINT32 type and val value.

◆ createValue() [17/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( uint64_t val)
inline
Parameters
valthe uint64 value
Returns
a Value with UINT64 type and val value.

◆ createValue() [18/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( uint8_t * val)
inline
Parameters
valthe uint8_t* val
Returns
a Value with POINTER type and val val.

◆ createValue() [19/19]

template<>
KUZU_API Value kuzu::common::Value::createValue ( uint8_t val)
inline
Parameters
valthe uint8 value
Returns
a Value with UINT8 type and val value.

◆ deserialize()

static KUZU_API std::unique_ptr< Value > kuzu::common::Value::deserialize ( Deserializer & deserializer)
static

◆ getChildrenSize()

KUZU_API uint32_t kuzu::common::Value::getChildrenSize ( ) const
inline

◆ getDataType()

KUZU_API const LogicalType & kuzu::common::Value::getDataType ( ) const
Returns
the dataType of the value.

◆ getValue() [1/23]

template<class T >
T kuzu::common::Value::getValue ( ) const
inline
Returns
the value of the given type.

◆ getValue() [2/23]

template<>
KUZU_API bool kuzu::common::Value::getValue ( ) const
inline
Returns
boolean value.

◆ getValue() [3/23]

template<>
KUZU_API int8_t kuzu::common::Value::getValue ( ) const
inline
Returns
int8 value.

◆ getValue() [4/23]

template<>
KUZU_API int16_t kuzu::common::Value::getValue ( ) const
inline
Returns
int16 value.

◆ getValue() [5/23]

template<>
KUZU_API int32_t kuzu::common::Value::getValue ( ) const
inline
Returns
int32 value.

◆ getValue() [6/23]

template<>
KUZU_API int64_t kuzu::common::Value::getValue ( ) const
inline
Returns
int64 value.

◆ getValue() [7/23]

template<>
KUZU_API uint64_t kuzu::common::Value::getValue ( ) const
inline
Returns
uint64 value.

◆ getValue() [8/23]

template<>
KUZU_API uint32_t kuzu::common::Value::getValue ( ) const
inline
Returns
uint32 value.

◆ getValue() [9/23]

template<>
KUZU_API uint16_t kuzu::common::Value::getValue ( ) const
inline
Returns
uint16 value.

◆ getValue() [10/23]

template<>
KUZU_API uint8_t kuzu::common::Value::getValue ( ) const
inline
Returns
uint8 value.

◆ getValue() [11/23]

template<>
KUZU_API int128_t kuzu::common::Value::getValue ( ) const
inline
Returns
int128 value.

◆ getValue() [12/23]

template<>
KUZU_API float kuzu::common::Value::getValue ( ) const
inline
Returns
float value.

◆ getValue() [13/23]

template<>
KUZU_API double kuzu::common::Value::getValue ( ) const
inline
Returns
double value.

◆ getValue() [14/23]

template<>
KUZU_API date_t kuzu::common::Value::getValue ( ) const
inline
Returns
date_t value.

◆ getValue() [15/23]

template<>
KUZU_API timestamp_t kuzu::common::Value::getValue ( ) const
inline
Returns
timestamp_t value.

◆ getValue() [16/23]

template<>
KUZU_API timestamp_ns_t kuzu::common::Value::getValue ( ) const
inline
Returns
timestamp_ns_t value.

◆ getValue() [17/23]

template<>
KUZU_API timestamp_ms_t kuzu::common::Value::getValue ( ) const
inline
Returns
timestamp_ms_t value.

◆ getValue() [18/23]

template<>
KUZU_API timestamp_sec_t kuzu::common::Value::getValue ( ) const
inline
Returns
timestamp_sec_t value.

◆ getValue() [19/23]

template<>
KUZU_API timestamp_tz_t kuzu::common::Value::getValue ( ) const
inline
Returns
timestamp_tz_t value.

◆ getValue() [20/23]

template<>
KUZU_API interval_t kuzu::common::Value::getValue ( ) const
inline
Returns
interval_t value.

◆ getValue() [21/23]

template<>
KUZU_API internalID_t kuzu::common::Value::getValue ( ) const
inline
Returns
internal_t value.

◆ getValue() [22/23]

template<>
KUZU_API std::string kuzu::common::Value::getValue ( ) const
inline
Returns
string value.

◆ getValue() [23/23]

template<>
KUZU_API uint8_t * kuzu::common::Value::getValue ( ) const
inline
Returns
uint8_t* value.

◆ getValueReference() [1/23]

template<class T >
T & kuzu::common::Value::getValueReference ( )
inline
Returns
a reference to the value of the given type.

◆ getValueReference() [2/23]

template<>
KUZU_API bool & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the boolean value.

◆ getValueReference() [3/23]

template<>
KUZU_API int8_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the int8 value.

◆ getValueReference() [4/23]

template<>
KUZU_API int16_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the int16 value.

◆ getValueReference() [5/23]

template<>
KUZU_API int32_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the int32 value.

◆ getValueReference() [6/23]

template<>
KUZU_API int64_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the int64 value.

◆ getValueReference() [7/23]

template<>
KUZU_API uint8_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the uint8 value.

◆ getValueReference() [8/23]

template<>
KUZU_API uint16_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the uint16 value.

◆ getValueReference() [9/23]

template<>
KUZU_API uint32_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the uint32 value.

◆ getValueReference() [10/23]

template<>
KUZU_API uint64_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the uint64 value.

◆ getValueReference() [11/23]

template<>
KUZU_API int128_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the int128 value.

◆ getValueReference() [12/23]

template<>
KUZU_API float & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the float value.

◆ getValueReference() [13/23]

template<>
KUZU_API double & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the double value.

◆ getValueReference() [14/23]

template<>
KUZU_API date_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the date value.

◆ getValueReference() [15/23]

template<>
KUZU_API timestamp_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the timestamp value.

◆ getValueReference() [16/23]

template<>
KUZU_API timestamp_ms_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the timestamp_ms value.

◆ getValueReference() [17/23]

template<>
KUZU_API timestamp_ns_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the timestamp_ns value.

◆ getValueReference() [18/23]

template<>
KUZU_API timestamp_sec_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the timestamp_sec value.

◆ getValueReference() [19/23]

template<>
KUZU_API timestamp_tz_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the timestamp_tz value.

◆ getValueReference() [20/23]

template<>
KUZU_API interval_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the interval value.

◆ getValueReference() [21/23]

template<>
KUZU_API nodeID_t & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the internal_id value.

◆ getValueReference() [22/23]

template<>
KUZU_API std::string & kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the string value.

◆ getValueReference() [23/23]

template<>
KUZU_API uint8_t *& kuzu::common::Value::getValueReference ( )
inline
Returns
the reference to the uint8_t* value.

◆ hasNoneNullChildren()

bool kuzu::common::Value::hasNoneNullChildren ( ) const

◆ isNull()

KUZU_API bool kuzu::common::Value::isNull ( ) const
Returns
whether the Value is null or not.

◆ operator=()

KUZU_API Value & kuzu::common::Value::operator= ( Value && other)
default

◆ operator==()

KUZU_API bool kuzu::common::Value::operator== ( const Value & rhs) const

◆ serialize()

KUZU_API void kuzu::common::Value::serialize ( Serializer & serializer) const

◆ setDataType()

KUZU_API void kuzu::common::Value::setDataType ( const LogicalType & dataType_)

Sets the data type of the Value.

Parameters
dataType_the data type to set to.

◆ setNull() [1/2]

KUZU_API void kuzu::common::Value::setNull ( )

Sets the null flag of the Value to true.

◆ setNull() [2/2]

KUZU_API void kuzu::common::Value::setNull ( bool flag)

Sets the null flag of the Value.

Parameters
flagnull value flag to set.

◆ toString()

KUZU_API std::string kuzu::common::Value::toString ( ) const
Returns
the current value in string format.

◆ validateType()

void kuzu::common::Value::validateType ( common::LogicalTypeID targetTypeID) const

Friends And Related Symbol Documentation

◆ ArrowRowBatch

friend class ArrowRowBatch
friend

◆ NestedVal

friend class NestedVal
friend

◆ NodeVal

friend class NodeVal
friend

◆ RecursiveRelVal

friend class RecursiveRelVal
friend

◆ RelVal

friend class RelVal
friend

◆ ValueVector

friend class ValueVector
friend

Member Data Documentation

◆ strVal

std::string kuzu::common::Value::strVal

◆ val

union kuzu::common::Value::Val kuzu::common::Value::val

The documentation for this class was generated from the following file: