210 throw std::runtime_error(
"Unimplemented template for Value::getValue()");
217 throw std::runtime_error(
"Unimplemented template for Value::getValueReference()");
224 throw std::runtime_error(
"Unimplemented template for Value::createValue()");
253 void resizeChildrenVector(uint64_t size,
const LogicalType& childType);
256 void copyFromRowLayoutStruct(
const uint8_t* kuStruct);
258 void copyFromUnion(
const uint8_t* kuUnion);
260 std::string rdfVariantToString()
const;
261 std::string mapToString()
const;
262 std::string listToString()
const;
263 std::string structToString()
const;
264 std::string nodeToString()
const;
265 std::string relToString()
const;
266 std::string decimalToString()
const;
297 std::vector<std::unique_ptr<Value>> children;
298 uint32_t childrenSize;
#define KUZU_API
Definition api.h:25
#define KU_ASSERT(condition)
Definition assert.h:19
Definition deserializer.h:15
KUZU_API LogicalTypeID getLogicalTypeID() const
Definition types.h:224
static LogicalType STRING()
Definition types.h:266
KUZU_API PhysicalTypeID getPhysicalType() const
Definition types.h:227
NodeVal represents a node in the graph and stores the nodeID, label and properties of that node.
Definition node.h:20
RecursiveRelVal represents a path in the graph and stores the corresponding rels and nodes of that pa...
Definition recursive_rel.h:14
RelVal represents a rel in the graph and stores the relID, src/dst nodes and properties of that rel.
Definition rel.h:20
Definition serializer.h:15
KUZU_API Value(const char *val_)
KUZU_API Value(date_t val_)
KUZU_API Value(float val_)
KUZU_API void serialize(Serializer &serializer) const
KUZU_API Value(timestamp_t val_)
static KUZU_API Value createNullValue()
KUZU_API Value(uint16_t val_)
KUZU_API Value(int8_t val_)
friend class ArrowRowBatch
Definition value.h:32
KUZU_API Value(Value &&other)=default
KUZU_API Value(timestamp_sec_t val_)
KUZU_API Value(uint8_t val_)
KUZU_API Value(internalID_t val_)
KUZU_API Value(timestamp_ms_t val_)
KUZU_API void setNull(bool flag)
Sets the null flag of the Value.
KUZU_API Value(uint8_t *val_)
bool hasNoneNullChildren() const
static KUZU_API Value createDefaultValue(const LogicalType &dataType)
std::string strVal
Definition value.h:288
KUZU_API const LogicalType & getDataType() const
union kuzu::common::Value::Val val
KUZU_API Value & operator=(Value &&other)=default
KUZU_API Value(LogicalType type, std::string val_)
KUZU_API Value(timestamp_tz_t val_)
KUZU_API Value(int16_t val_)
KUZU_API std::string toString() const
KUZU_API void copyFromColLayout(const uint8_t *value, ValueVector *vec=nullptr)
Copies from the col layout value.
KUZU_API Value(int64_t val_)
T getValue() const
Definition value.h:209
KUZU_API void setDataType(const LogicalType &dataType_)
Sets the data type of the Value.
KUZU_API void copyValueFrom(const Value &other)
Copies from the other.
KUZU_API std::unique_ptr< Value > copy() const
KUZU_API Value(LogicalType dataType, std::vector< std::unique_ptr< Value > > children)
KUZU_API Value(uint64_t val_)
KUZU_API void setNull()
Sets the null flag of the Value to true.
uint64_t computeHash() const
KUZU_API bool isNull() const
KUZU_API Value(ku_uuid_t val_)
KUZU_API bool operator==(const Value &rhs) const
bool allowTypeChange() const
KUZU_API uint32_t getChildrenSize() const
Definition value.h:247
KUZU_API Value(bool val_)
KUZU_API Value(const Value &other)
KUZU_API Value(int32_t val_)
KUZU_API Value(const std::string &val_)
static KUZU_API std::unique_ptr< Value > deserialize(Deserializer &deserializer)
T & getValueReference()
Definition value.h:216
KUZU_API Value(int128_t val_)
static KUZU_API Value createNullValue(const LogicalType &dataType)
static Value createValue(T)
Definition value.h:223
KUZU_API Value(interval_t val_)
void validateType(common::LogicalTypeID targetTypeID) const
KUZU_API Value(uint32_t val_)
KUZU_API void copyFromRowLayout(const uint8_t *value)
Copies from the row layout value.
KUZU_API Value(double val_)
KUZU_API Value(timestamp_ns_t val_)
Definition value_vector.h:20
LogicalTypeID
Definition types.h:126
Definition alter_type.h:5
Definition internal_id_t.h:31
Definition interval_t.h:30
Definition timestamp_t.h:49
Definition timestamp_t.h:46
Definition timestamp_t.h:52
Definition timestamp_t.h:10
Definition timestamp_t.h:43
int32_t int32Val
Definition value.h:274
int8_t int8Val
Definition value.h:276
uint8_t uint8Val
Definition value.h:280
uint8_t * pointer
Definition value.h:284
uint32_t uint32Val
Definition value.h:278
bool booleanVal
Definition value.h:271
uint16_t uint16Val
Definition value.h:279
int16_t int16Val
Definition value.h:275
internalID_t internalIDVal
Definition value.h:286
int64_t int64Val
Definition value.h:273
interval_t intervalVal
Definition value.h:285
double doubleVal
Definition value.h:281
int128_t int128Val
Definition value.h:272
float floatVal
Definition value.h:282
constexpr Val()
Definition value.h:270
uint64_t uint64Val
Definition value.h:277