Kùzu C++ API
|
#include <column_chunk_data.h>
Public Member Functions | |
ColumnChunkData (common::LogicalType dataType, uint64_t capacity, bool enableCompression, ResidencyState residencyState, bool hasNullData) | |
ColumnChunkData (common::LogicalType dataType, bool enableCompression, const ColumnChunkMetadata &metadata, bool hasNullData) | |
virtual | ~ColumnChunkData ()=default |
template<typename T > | |
T | getValue (common::offset_t pos) const |
template<typename T > | |
void | setValue (T val, common::offset_t pos) |
bool | isNull (common::offset_t pos) const |
void | setNullData (std::unique_ptr< NullChunkData > nullData_) |
bool | hasNullData () const |
NullChunkData * | getNullData () |
const NullChunkData & | getNullData () const |
std::optional< common::NullMask > | getNullMask () const |
std::unique_ptr< NullChunkData > | moveNullData () |
common::LogicalType & | getDataType () |
const common::LogicalType & | getDataType () const |
ResidencyState | getResidencyState () const |
bool | isCompressionEnabled () const |
ColumnChunkMetadata & | getMetadata () |
const ColumnChunkMetadata & | getMetadata () const |
void | setMetadata (const ColumnChunkMetadata &metadata_) |
virtual void | resetToAllNull () |
virtual void | resetToEmpty () |
virtual ColumnChunkMetadata | getMetadataToFlush () const |
virtual void | append (common::ValueVector *vector, const common::SelectionVector &selVector) |
virtual void | append (ColumnChunkData *other, common::offset_t startPosInOtherChunk, uint32_t numValuesToAppend) |
virtual void | flush (BMFileHandle &dataFH) |
ColumnChunkMetadata | flushBuffer (BMFileHandle *dataFH, common::page_idx_t startPageIdx, const ColumnChunkMetadata &metadata) const |
uint64_t | getNumBytesPerValue () const |
uint8_t * | getData () const |
virtual void | initializeScanState (ChunkState &state) const |
virtual void | scan (common::ValueVector &output, common::offset_t offset, common::length_t length, common::sel_t posInOutputVector=0) const |
virtual void | lookup (common::offset_t offsetInChunk, common::ValueVector &output, common::sel_t posInOutputVector) const |
virtual void | write (const common::ValueVector *vector, common::offset_t offsetInVector, common::offset_t offsetInChunk) |
virtual void | write (ColumnChunkData *chunk, ColumnChunkData *offsetsInChunk, common::RelMultiplicity multiplicity) |
virtual void | write (ColumnChunkData *srcChunk, common::offset_t srcOffsetInChunk, common::offset_t dstOffsetInChunk, common::offset_t numValuesToCopy) |
virtual void | copy (ColumnChunkData *srcChunk, common::offset_t srcOffsetInChunk, common::offset_t dstOffsetInChunk, common::offset_t numValuesToCopy) |
virtual void | setToInMemory () |
virtual void | resize (uint64_t newCapacity) |
void | populateWithDefaultVal (evaluator::ExpressionEvaluator &defaultEvaluator, uint64_t &numValues_) |
virtual void | finalize () |
uint64_t | getCapacity () const |
virtual uint64_t | getNumValues () const |
virtual void | resetNumValuesFromMetadata () |
virtual void | setNumValues (uint64_t numValues_) |
virtual void | syncNumValues () |
virtual bool | numValuesSanityCheck () const |
virtual bool | sanityCheck () const |
virtual uint64_t | getEstimatedMemoryUsage () const |
virtual void | serialize (common::Serializer &serializer) const |
template<typename TARGET > | |
TARGET & | cast () |
template<typename TARGET > | |
const TARGET & | cast () const |
template<> | |
void | setValue (bool val, common::offset_t pos) |
template<> | |
bool | getValue (common::offset_t pos) const |
Static Public Member Functions | |
static common::page_idx_t | getNumPagesForBytes (uint64_t numBytes) |
static std::unique_ptr< ColumnChunkData > | deserialize (common::Deserializer &deSer) |
Protected Types | |
using | flush_buffer_func_t |
using | get_metadata_func_t |
using | get_min_max_func_t |
Protected Member Functions | |
void | initializeBuffer () |
void | initializeFunction (bool enableCompression) |
void | setToOnDisk (const ColumnChunkMetadata &metadata) |
virtual void | copyVectorToBuffer (common::ValueVector *vector, common::offset_t startPosInChunk, const common::SelectionVector &selVector) |
Protected Attributes | |
ResidencyState | residencyState |
common::LogicalType | dataType |
bool | enableCompression |
uint32_t | numBytesPerValue |
uint64_t | bufferSize |
uint64_t | capacity |
std::unique_ptr< uint8_t[]> | buffer |
std::unique_ptr< NullChunkData > | nullData |
uint64_t | numValues |
flush_buffer_func_t | flushBufferFunction |
get_metadata_func_t | getMetadataFunction |
ColumnChunkMetadata | metadata |
Friends | |
struct | ColumnChunkFactory |
|
protected |
|
protected |
|
protected |
kuzu::storage::ColumnChunkData::ColumnChunkData | ( | common::LogicalType | dataType, |
uint64_t | capacity, | ||
bool | enableCompression, | ||
ResidencyState | residencyState, | ||
bool | hasNullData ) |
kuzu::storage::ColumnChunkData::ColumnChunkData | ( | common::LogicalType | dataType, |
bool | enableCompression, | ||
const ColumnChunkMetadata & | metadata, | ||
bool | hasNullData ) |
|
virtualdefault |
|
virtual |
Reimplemented in kuzu::storage::BoolChunkData, kuzu::storage::InternalIDChunkData, and kuzu::storage::NullChunkData.
|
virtual |
Reimplemented in kuzu::storage::BoolChunkData, and kuzu::storage::InternalIDChunkData.
|
inline |
|
inline |
|
virtual |
|
protectedvirtual |
Reimplemented in kuzu::storage::InternalIDChunkData.
|
static |
|
inlinevirtual |
|
virtual |
ColumnChunkMetadata kuzu::storage::ColumnChunkData::flushBuffer | ( | BMFileHandle * | dataFH, |
common::page_idx_t | startPageIdx, | ||
const ColumnChunkMetadata & | metadata ) const |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
inline |
|
inline |
|
virtual |
|
inline |
|
inline |
std::optional< common::NullMask > kuzu::storage::ColumnChunkData::getNullMask | ( | ) | const |
|
inline |
|
inlinestatic |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
virtual |
|
inline |
bool kuzu::storage::ColumnChunkData::isNull | ( | common::offset_t | pos | ) | const |
|
virtual |
Reimplemented in kuzu::storage::BoolChunkData, and kuzu::storage::InternalIDChunkData.
|
inline |
|
virtual |
void kuzu::storage::ColumnChunkData::populateWithDefaultVal | ( | evaluator::ExpressionEvaluator & | defaultEvaluator, |
uint64_t & | numValues_ ) |
|
virtual |
|
virtual |
Reimplemented in kuzu::storage::NullChunkData.
|
virtual |
Reimplemented in kuzu::storage::NullChunkData.
|
virtual |
|
virtual |
|
virtual |
Reimplemented in kuzu::storage::BoolChunkData, kuzu::storage::InternalIDChunkData, and kuzu::storage::NullChunkData.
|
virtual |
Reimplemented in kuzu::storage::NullChunkData.
|
inline |
|
inline |
|
virtual |
|
virtual |
|
protected |
|
inline |
|
inline |
|
inlinevirtual |
|
virtual |
Reimplemented in kuzu::storage::BoolChunkData.
|
virtual |
Reimplemented in kuzu::storage::BoolChunkData, and kuzu::storage::NullChunkData.
|
virtual |
Reimplemented in kuzu::storage::BoolChunkData, kuzu::storage::InternalIDChunkData, and kuzu::storage::NullChunkData.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |