Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::storage::InternalIDChunkData Class Referencefinal

#include <column_chunk_data.h>

Inheritance diagram for kuzu::storage::InternalIDChunkData:
kuzu::storage::ColumnChunkData

Public Member Functions

 InternalIDChunkData (uint64_t capacity, bool enableCompression, ResidencyState residencyState)
 
 InternalIDChunkData (bool enableCompression, const ColumnChunkMetadata &metadata)
 
void append (common::ValueVector *vector, const common::SelectionVector &selVector) override
 
void copyVectorToBuffer (common::ValueVector *vector, common::offset_t startPosInChunk, const common::SelectionVector &selVector) override
 
void copyInt64VectorToBuffer (common::ValueVector *vector, common::offset_t startPosInChunk, const common::SelectionVector &selVector) const
 
void scan (common::ValueVector &output, common::offset_t offset, common::length_t length, common::sel_t posInOutputVector=0) const override
 
void lookup (common::offset_t offsetInChunk, common::ValueVector &output, common::sel_t posInOutputVector) const override
 
void write (const common::ValueVector *vector, common::offset_t offsetInVector, common::offset_t offsetInChunk) override
 
void append (ColumnChunkData *other, common::offset_t startPosInOtherChunk, uint32_t numValuesToAppend) override
 
void setTableID (common::table_id_t tableID)
 
common::table_id_t getTableID () const
 
common::offset_t operator[] (common::offset_t pos) const
 
common::offset_toperator[] (common::offset_t pos)
 
- Public Member Functions inherited from kuzu::storage::ColumnChunkData
 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 >
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
 
NullChunkDatagetNullData ()
 
const NullChunkDatagetNullData () const
 
std::optional< common::NullMaskgetNullMask () const
 
std::unique_ptr< NullChunkDatamoveNullData ()
 
common::LogicalTypegetDataType ()
 
const common::LogicalTypegetDataType () const
 
ResidencyState getResidencyState () const
 
bool isCompressionEnabled () const
 
ColumnChunkMetadatagetMetadata ()
 
const ColumnChunkMetadatagetMetadata () const
 
void setMetadata (const ColumnChunkMetadata &metadata_)
 
virtual void resetToAllNull ()
 
virtual void resetToEmpty ()
 
virtual ColumnChunkMetadata getMetadataToFlush () const
 
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 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
 

Additional Inherited Members

- Static Public Member Functions inherited from kuzu::storage::ColumnChunkData
static common::page_idx_t getNumPagesForBytes (uint64_t numBytes)
 
static std::unique_ptr< ColumnChunkDatadeserialize (common::Deserializer &deSer)
 
- Protected Types inherited from kuzu::storage::ColumnChunkData
using flush_buffer_func_t
 
using get_metadata_func_t
 
using get_min_max_func_t
 
- Protected Member Functions inherited from kuzu::storage::ColumnChunkData
void initializeBuffer ()
 
void initializeFunction (bool enableCompression)
 
void setToOnDisk (const ColumnChunkMetadata &metadata)
 
- Protected Attributes inherited from kuzu::storage::ColumnChunkData
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< NullChunkDatanullData
 
uint64_t numValues
 
flush_buffer_func_t flushBufferFunction
 
get_metadata_func_t getMetadataFunction
 
ColumnChunkMetadata metadata
 

Constructor & Destructor Documentation

◆ InternalIDChunkData() [1/2]

kuzu::storage::InternalIDChunkData::InternalIDChunkData ( uint64_t capacity,
bool enableCompression,
ResidencyState residencyState )
inline

◆ InternalIDChunkData() [2/2]

kuzu::storage::InternalIDChunkData::InternalIDChunkData ( bool enableCompression,
const ColumnChunkMetadata & metadata )
inline

Member Function Documentation

◆ append() [1/2]

void kuzu::storage::InternalIDChunkData::append ( ColumnChunkData * other,
common::offset_t startPosInOtherChunk,
uint32_t numValuesToAppend )
overridevirtual

Reimplemented from kuzu::storage::ColumnChunkData.

◆ append() [2/2]

void kuzu::storage::InternalIDChunkData::append ( common::ValueVector * vector,
const common::SelectionVector & selVector )
overridevirtual

Reimplemented from kuzu::storage::ColumnChunkData.

◆ copyInt64VectorToBuffer()

void kuzu::storage::InternalIDChunkData::copyInt64VectorToBuffer ( common::ValueVector * vector,
common::offset_t startPosInChunk,
const common::SelectionVector & selVector ) const

◆ copyVectorToBuffer()

void kuzu::storage::InternalIDChunkData::copyVectorToBuffer ( common::ValueVector * vector,
common::offset_t startPosInChunk,
const common::SelectionVector & selVector )
overridevirtual

Reimplemented from kuzu::storage::ColumnChunkData.

◆ getTableID()

common::table_id_t kuzu::storage::InternalIDChunkData::getTableID ( ) const
inline

◆ lookup()

void kuzu::storage::InternalIDChunkData::lookup ( common::offset_t offsetInChunk,
common::ValueVector & output,
common::sel_t posInOutputVector ) const
overridevirtual

Reimplemented from kuzu::storage::ColumnChunkData.

◆ operator[]() [1/2]

common::offset_t & kuzu::storage::InternalIDChunkData::operator[] ( common::offset_t pos)
inline

◆ operator[]() [2/2]

common::offset_t kuzu::storage::InternalIDChunkData::operator[] ( common::offset_t pos) const
inline

◆ scan()

void kuzu::storage::InternalIDChunkData::scan ( common::ValueVector & output,
common::offset_t offset,
common::length_t length,
common::sel_t posInOutputVector = 0 ) const
overridevirtual

Reimplemented from kuzu::storage::ColumnChunkData.

◆ setTableID()

void kuzu::storage::InternalIDChunkData::setTableID ( common::table_id_t tableID)
inline

◆ write()

void kuzu::storage::InternalIDChunkData::write ( const common::ValueVector * vector,
common::offset_t offsetInVector,
common::offset_t offsetInChunk )
overridevirtual

Reimplemented from kuzu::storage::ColumnChunkData.


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