Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::storage::VectorVersionInfo Struct Reference

#include <version_info.h>

Public Types

enum class  InsertionStatus : uint8_t { NO_INSERTED , CHECK_VERSION , ALWAYS_INSERTED }
 
enum class  DeletionStatus : uint8_t { NO_DELETED , CHECK_VERSION }
 

Public Member Functions

 VectorVersionInfo ()
 
 DELETE_COPY_DEFAULT_MOVE (VectorVersionInfo)
 
bool anyVersions () const
 
common::row_idx_t append (common::transaction_t transactionID, common::row_idx_t startRow, common::row_idx_t numRows)
 
bool delete_ (common::transaction_t transactionID, common::row_idx_t rowIdx)
 
void getSelVectorForScan (common::transaction_t startTS, common::transaction_t transactionID, common::SelectionVector &selVector, common::row_idx_t startRow, common::row_idx_t numRows, common::sel_t startOutputPos) const
 
void rollbackInsertions (common::row_idx_t startRowInVector, common::row_idx_t numRows)
 
void rollbackDeletions (common::row_idx_t startRowInVector, common::row_idx_t numRows)
 
void serialize (common::Serializer &serializer) const
 
common::row_idx_t numCommittedDeletions (const transaction::Transaction *transaction) const
 
bool isDeleted (common::transaction_t startTS, common::transaction_t transactionID, common::row_idx_t rowIdx) const
 
bool isInserted (common::transaction_t startTS, common::transaction_t transactionID, common::row_idx_t rowIdx) const
 
common::row_idx_t getNumDeletions (common::transaction_t startTS, common::transaction_t transactionID, common::row_idx_t startRow, common::length_t numRows) const
 
bool finalizeStatusFromVersions ()
 

Static Public Member Functions

static std::unique_ptr< VectorVersionInfodeSerialize (common::Deserializer &deSer)
 

Public Attributes

std::array< common::transaction_t, common::DEFAULT_VECTOR_CAPACITYinsertedVersions
 
std::array< common::transaction_t, common::DEFAULT_VECTOR_CAPACITYdeletedVersions
 
InsertionStatus insertionStatus
 
DeletionStatus deletionStatus
 

Member Enumeration Documentation

◆ DeletionStatus

Enumerator
NO_DELETED 
CHECK_VERSION 

◆ InsertionStatus

Enumerator
NO_INSERTED 
CHECK_VERSION 
ALWAYS_INSERTED 

Constructor & Destructor Documentation

◆ VectorVersionInfo()

kuzu::storage::VectorVersionInfo::VectorVersionInfo ( )
inline

Member Function Documentation

◆ anyVersions()

bool kuzu::storage::VectorVersionInfo::anyVersions ( ) const
inline

◆ append()

common::row_idx_t kuzu::storage::VectorVersionInfo::append ( common::transaction_t transactionID,
common::row_idx_t startRow,
common::row_idx_t numRows )

◆ delete_()

bool kuzu::storage::VectorVersionInfo::delete_ ( common::transaction_t transactionID,
common::row_idx_t rowIdx )

◆ DELETE_COPY_DEFAULT_MOVE()

kuzu::storage::VectorVersionInfo::DELETE_COPY_DEFAULT_MOVE ( VectorVersionInfo )

◆ deSerialize()

static std::unique_ptr< VectorVersionInfo > kuzu::storage::VectorVersionInfo::deSerialize ( common::Deserializer & deSer)
static

◆ finalizeStatusFromVersions()

bool kuzu::storage::VectorVersionInfo::finalizeStatusFromVersions ( )

◆ getNumDeletions()

common::row_idx_t kuzu::storage::VectorVersionInfo::getNumDeletions ( common::transaction_t startTS,
common::transaction_t transactionID,
common::row_idx_t startRow,
common::length_t numRows ) const

◆ getSelVectorForScan()

void kuzu::storage::VectorVersionInfo::getSelVectorForScan ( common::transaction_t startTS,
common::transaction_t transactionID,
common::SelectionVector & selVector,
common::row_idx_t startRow,
common::row_idx_t numRows,
common::sel_t startOutputPos ) const

◆ isDeleted()

bool kuzu::storage::VectorVersionInfo::isDeleted ( common::transaction_t startTS,
common::transaction_t transactionID,
common::row_idx_t rowIdx ) const

◆ isInserted()

bool kuzu::storage::VectorVersionInfo::isInserted ( common::transaction_t startTS,
common::transaction_t transactionID,
common::row_idx_t rowIdx ) const

◆ numCommittedDeletions()

common::row_idx_t kuzu::storage::VectorVersionInfo::numCommittedDeletions ( const transaction::Transaction * transaction) const

◆ rollbackDeletions()

void kuzu::storage::VectorVersionInfo::rollbackDeletions ( common::row_idx_t startRowInVector,
common::row_idx_t numRows )

◆ rollbackInsertions()

void kuzu::storage::VectorVersionInfo::rollbackInsertions ( common::row_idx_t startRowInVector,
common::row_idx_t numRows )

◆ serialize()

void kuzu::storage::VectorVersionInfo::serialize ( common::Serializer & serializer) const

Member Data Documentation

◆ deletedVersions

std::array<common::transaction_t, common::DEFAULT_VECTOR_CAPACITY> kuzu::storage::VectorVersionInfo::deletedVersions

◆ deletionStatus

DeletionStatus kuzu::storage::VectorVersionInfo::deletionStatus

◆ insertedVersions

std::array<common::transaction_t, common::DEFAULT_VECTOR_CAPACITY> kuzu::storage::VectorVersionInfo::insertedVersions

◆ insertionStatus

InsertionStatus kuzu::storage::VectorVersionInfo::insertionStatus

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