Kùzu C++ API
|
#include <value_vector.h>
Public Member Functions | |
ValueVector (LogicalType dataType, storage::MemoryManager *memoryManager=nullptr) | |
ValueVector (LogicalTypeID dataTypeID, storage::MemoryManager *memoryManager=nullptr) | |
~ValueVector ()=default | |
void | setState (const std::shared_ptr< DataChunkState > &state_) |
void | setAllNull () |
void | setAllNonNull () |
bool | hasNoNullsGuarantee () const |
void | setNullRange (uint32_t startPos, uint32_t len, bool value) |
const NullMask & | getNullMask () const |
void | setNull (uint32_t pos, bool isNull) |
uint8_t | isNull (uint32_t pos) const |
void | setAsSingleNullEntry () |
bool | setNullFromBits (const uint64_t *srcNullEntries, uint64_t srcOffset, uint64_t dstOffset, uint64_t numBitsToCopy, bool invert=false) |
uint32_t | getNumBytesPerValue () const |
template<typename T > | |
const T & | getValue (uint32_t pos) const |
template<typename T > | |
T & | getValue (uint32_t pos) |
template<typename T > | |
void | setValue (uint32_t pos, T val) |
void | copyFromRowData (uint32_t pos, const uint8_t *rowData) |
void | copyToRowData (uint32_t pos, uint8_t *rowData, InMemOverflowBuffer *rowOverflowBuffer) const |
void | copyFromVectorData (uint8_t *dstData, const ValueVector *srcVector, const uint8_t *srcVectorData) |
void | copyFromVectorData (uint64_t dstPos, const ValueVector *srcVector, uint64_t srcPos) |
void | copyFromValue (uint64_t pos, const Value &value) |
std::unique_ptr< Value > | getAsValue (uint64_t pos) const |
uint8_t * | getData () const |
offset_t | readNodeOffset (uint32_t pos) const |
void | resetAuxiliaryBuffer () |
void | serialize (Serializer &ser) const |
Static Public Member Functions | |
static bool | discardNull (ValueVector &vector) |
static std::unique_ptr< ValueVector > | deSerialize (Deserializer &deSer, storage::MemoryManager *mm, std::shared_ptr< DataChunkState > dataChunkState) |
Public Attributes | |
LogicalType | dataType |
std::shared_ptr< DataChunkState > | state |
Friends | |
class | ListVector |
class | ListAuxiliaryBuffer |
class | StructVector |
class | StringVector |
class | ArrowColumnVector |
A Vector represents values of the same data type. The capacity of a ValueVector is either 1 (sequence) or DEFAULT_VECTOR_CAPACITY.
|
explicit |
|
inlineexplicit |
|
default |
void kuzu::common::ValueVector::copyFromRowData | ( | uint32_t | pos, |
const uint8_t * | rowData ) |
void kuzu::common::ValueVector::copyFromValue | ( | uint64_t | pos, |
const Value & | value ) |
void kuzu::common::ValueVector::copyFromVectorData | ( | uint64_t | dstPos, |
const ValueVector * | srcVector, | ||
uint64_t | srcPos ) |
void kuzu::common::ValueVector::copyFromVectorData | ( | uint8_t * | dstData, |
const ValueVector * | srcVector, | ||
const uint8_t * | srcVectorData ) |
void kuzu::common::ValueVector::copyToRowData | ( | uint32_t | pos, |
uint8_t * | rowData, | ||
InMemOverflowBuffer * | rowOverflowBuffer ) const |
|
static |
|
static |
std::unique_ptr< Value > kuzu::common::ValueVector::getAsValue | ( | uint64_t | pos | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void kuzu::common::ValueVector::resetAuxiliaryBuffer | ( | ) |
void kuzu::common::ValueVector::serialize | ( | Serializer & | ser | ) | const |
|
inline |
|
inline |
|
inline |
void kuzu::common::ValueVector::setNull | ( | uint32_t | pos, |
bool | isNull ) |
bool kuzu::common::ValueVector::setNullFromBits | ( | const uint64_t * | srcNullEntries, |
uint64_t | srcOffset, | ||
uint64_t | dstOffset, | ||
uint64_t | numBitsToCopy, | ||
bool | invert = false ) |
|
inline |
void kuzu::common::ValueVector::setState | ( | const std::shared_ptr< DataChunkState > & | state_ | ) |
void kuzu::common::ValueVector::setValue | ( | uint32_t | pos, |
T | val ) |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
LogicalType kuzu::common::ValueVector::dataType |
std::shared_ptr<DataChunkState> kuzu::common::ValueVector::state |