209 throw std::runtime_error(
"Unimplemented template for Value::getValue()");
216 throw std::runtime_error(
"Unimplemented template for Value::getValueReference()");
223 throw std::runtime_error(
"Unimplemented template for Value::createValue()");
252 void resizeChildrenVector(uint64_t size,
const LogicalType& childType);
255 void copyFromRowLayoutStruct(
const uint8_t* kuStruct);
257 void copyFromUnion(
const uint8_t* kuUnion);
259 std::string mapToString()
const;
260 std::string listToString()
const;
261 std::string structToString()
const;
262 std::string nodeToString()
const;
263 std::string relToString()
const;
264 std::string decimalToString()
const;
295 std::vector<std::unique_ptr<Value>> children;
296 uint32_t childrenSize;
#define KUZU_API
Definition api.h:25
#define KU_ASSERT(condition)
Definition assert.h:19
KUZU_API LogicalTypeID getLogicalTypeID() const
Definition types.h:272
static LogicalType STRING()
Definition types.h:327
KUZU_API PhysicalTypeID getPhysicalType() const
Definition types.h:276
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
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:31
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:286
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:208
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:246
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:215
KUZU_API Value(int128_t val_)
static KUZU_API Value createNullValue(const LogicalType &dataType)
static Value createValue(T)
Definition value.h:222
KUZU_API Value(interval_t val_)
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_)
KUZU_API void validateType(common::LogicalTypeID targetTypeID) const
Definition value_vector.h:21
LogicalTypeID
Definition types.h:170
Definition array_utils.h:7
Definition interval_t.h:35
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:272
int8_t int8Val
Definition value.h:274
uint8_t uint8Val
Definition value.h:278
uint8_t * pointer
Definition value.h:282
uint32_t uint32Val
Definition value.h:276
bool booleanVal
Definition value.h:269
uint16_t uint16Val
Definition value.h:277
int16_t int16Val
Definition value.h:273
internalID_t internalIDVal
Definition value.h:284
int64_t int64Val
Definition value.h:271
interval_t intervalVal
Definition value.h:283
double doubleVal
Definition value.h:279
int128_t int128Val
Definition value.h:270
float floatVal
Definition value.h:280
constexpr Val()
Definition value.h:268
uint64_t uint64Val
Definition value.h:275