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

#include <undo_buffer.h>

Public Types

enum class  UndoRecordType : uint16_t {
  CATALOG_ENTRY = 0 , SEQUENCE_ENTRY = 1 , UPDATE_INFO = 6 , INSERT_INFO = 7 ,
  DELETE_INFO = 8
}
 

Public Member Functions

 UndoBuffer (transaction::Transaction *transaction)
 
void createCatalogEntry (catalog::CatalogSet &catalogSet, catalog::CatalogEntry &catalogEntry)
 
void createSequenceChange (catalog::SequenceCatalogEntry &sequenceEntry, const catalog::SequenceRollbackData &data)
 
void createVectorInsertInfo (VersionInfo *versionInfo, common::idx_t vectorIdx, common::row_idx_t startRowInVector, common::row_idx_t numRows)
 
void createVectorDeleteInfo (VersionInfo *versionInfo, common::idx_t vectorIdx, common::row_idx_t startRowInVector, common::row_idx_t numRows)
 
void createVectorUpdateInfo (UpdateInfo *updateInfo, common::idx_t vectorIdx, VectorUpdateInfo *vectorUpdateInfo)
 
void commit (common::transaction_t commitTS) const
 
void rollback ()
 
uint64_t getMemUsage () const
 

Friends

class UndoBufferIterator
 

Member Enumeration Documentation

◆ UndoRecordType

enum class kuzu::storage::UndoBuffer::UndoRecordType : uint16_t
strong
Enumerator
CATALOG_ENTRY 
SEQUENCE_ENTRY 
UPDATE_INFO 
INSERT_INFO 
DELETE_INFO 

Constructor & Destructor Documentation

◆ UndoBuffer()

kuzu::storage::UndoBuffer::UndoBuffer ( transaction::Transaction * transaction)
explicit

Member Function Documentation

◆ commit()

void kuzu::storage::UndoBuffer::commit ( common::transaction_t commitTS) const

◆ createCatalogEntry()

void kuzu::storage::UndoBuffer::createCatalogEntry ( catalog::CatalogSet & catalogSet,
catalog::CatalogEntry & catalogEntry )

◆ createSequenceChange()

void kuzu::storage::UndoBuffer::createSequenceChange ( catalog::SequenceCatalogEntry & sequenceEntry,
const catalog::SequenceRollbackData & data )

◆ createVectorDeleteInfo()

void kuzu::storage::UndoBuffer::createVectorDeleteInfo ( VersionInfo * versionInfo,
common::idx_t vectorIdx,
common::row_idx_t startRowInVector,
common::row_idx_t numRows )

◆ createVectorInsertInfo()

void kuzu::storage::UndoBuffer::createVectorInsertInfo ( VersionInfo * versionInfo,
common::idx_t vectorIdx,
common::row_idx_t startRowInVector,
common::row_idx_t numRows )

◆ createVectorUpdateInfo()

void kuzu::storage::UndoBuffer::createVectorUpdateInfo ( UpdateInfo * updateInfo,
common::idx_t vectorIdx,
VectorUpdateInfo * vectorUpdateInfo )

◆ getMemUsage()

uint64_t kuzu::storage::UndoBuffer::getMemUsage ( ) const

◆ rollback()

void kuzu::storage::UndoBuffer::rollback ( )

Friends And Related Symbol Documentation

◆ UndoBufferIterator

friend class UndoBufferIterator
friend

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