Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::storage::BoolChunkData Class Reference

#include <column_chunk_data.h>

Inheritance diagram for kuzu::storage::BoolChunkData:
kuzu::storage::ColumnChunkData kuzu::storage::NullChunkData

Public Member Functions

 BoolChunkData (uint64_t capacity, bool enableCompression, ResidencyState type, bool hasNullChunk)
 
 BoolChunkData (bool enableCompression, const ColumnChunkMetadata &metadata, bool hasNullData)
 
void append (common::ValueVector *vector, const common::SelectionVector &sel) final
 
void append (ColumnChunkData *other, common::offset_t startPosInOtherChunk, uint32_t numValuesToAppend) override
 
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 write (ColumnChunkData *chunk, ColumnChunkData *dstOffsets, common::RelMultiplicity multiplicity) final
 
void write (ColumnChunkData *srcChunk, common::offset_t srcOffsetInChunk, common::offset_t dstOffsetInChunk, common::offset_t numValuesToCopy) override
 
- 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 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)
 
virtual void copyVectorToBuffer (common::ValueVector *vector, common::offset_t startPosInChunk, const common::SelectionVector &selVector)
 
- 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

◆ BoolChunkData() [1/2]

kuzu::storage::BoolChunkData::BoolChunkData ( uint64_t capacity,
bool enableCompression,
ResidencyState type,
bool hasNullChunk )
inline

◆ BoolChunkData() [2/2]

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

Member Function Documentation

◆ append() [1/2]

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

Reimplemented from kuzu::storage::ColumnChunkData.

Reimplemented in kuzu::storage::NullChunkData.

◆ append() [2/2]

void kuzu::storage::BoolChunkData::append ( common::ValueVector * vector,
const common::SelectionVector & sel )
finalvirtual

Reimplemented from kuzu::storage::ColumnChunkData.

◆ lookup()

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

Reimplemented from kuzu::storage::ColumnChunkData.

◆ scan()

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

Reimplemented from kuzu::storage::ColumnChunkData.

Reimplemented in kuzu::storage::NullChunkData.

◆ write() [1/3]

void kuzu::storage::BoolChunkData::write ( ColumnChunkData * chunk,
ColumnChunkData * dstOffsets,
common::RelMultiplicity multiplicity )
finalvirtual

Reimplemented from kuzu::storage::ColumnChunkData.

◆ write() [2/3]

void kuzu::storage::BoolChunkData::write ( ColumnChunkData * srcChunk,
common::offset_t srcOffsetInChunk,
common::offset_t dstOffsetInChunk,
common::offset_t numValuesToCopy )
overridevirtual

Reimplemented from kuzu::storage::ColumnChunkData.

Reimplemented in kuzu::storage::NullChunkData.

◆ write() [3/3]

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

Reimplemented from kuzu::storage::ColumnChunkData.

Reimplemented in kuzu::storage::NullChunkData.


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