Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::storage::Table Class Referenceabstract

#include <table.h>

Public Member Functions

 Table (const catalog::TableCatalogEntry *tableEntry, StorageManager *storageManager, MemoryManager *memoryManager)
 
virtual ~Table ()=default
 
common::TableType getTableType () const
 
common::table_id_t getTableID () const
 
std::string getTableName () const
 
BMFileHandle * getDataFH () const
 
virtual void initializeScanState (transaction::Transaction *transaction, TableScanState &readState)=0
 
bool scan (transaction::Transaction *transaction, TableScanState &scanState)
 
virtual void insert (transaction::Transaction *transaction, TableInsertState &insertState)=0
 
virtual void update (transaction::Transaction *transaction, TableUpdateState &updateState)=0
 
virtual bool delete_ (transaction::Transaction *transaction, TableDeleteState &deleteState)=0
 
virtual void addColumn (transaction::Transaction *transaction, TableAddColumnState &addColumnState)=0
 
void dropColumn ()
 
virtual void commit (transaction::Transaction *transaction, LocalTable *localTable)=0
 
virtual void checkpoint (common::Serializer &ser, catalog::TableCatalogEntry *tableEntry)=0
 
virtual common::row_idx_t getNumRows ()=0
 
void setHasChanges ()
 
template<class TARGET >
TARGET & cast ()
 
template<class TARGET >
const TARGET & cast () const
 
template<class TARGET >
TARGET * ptrCast ()
 

Static Public Member Functions

static std::unique_ptr< TableloadTable (common::Deserializer &deSer, const catalog::Catalog &catalog, StorageManager *storageManager, MemoryManager *memoryManager, common::VirtualFileSystem *vfs, main::ClientContext *context)
 

Protected Member Functions

virtual bool scanInternal (transaction::Transaction *transaction, TableScanState &scanState)=0
 
virtual void serialize (common::Serializer &serializer) const
 
std::unique_ptr< common::DataChunkconstructDataChunk (const std::vector< common::LogicalType > &types)
 

Protected Attributes

common::TableType tableType
 
common::table_id_t tableID
 
std::string tableName
 
bool enableCompression
 
BMFileHandle * dataFH
 
MemoryManager * memoryManager
 
BufferManager * bufferManager
 
ShadowFile * shadowFile
 
bool hasChanges
 

Constructor & Destructor Documentation

◆ Table()

kuzu::storage::Table::Table ( const catalog::TableCatalogEntry * tableEntry,
StorageManager * storageManager,
MemoryManager * memoryManager )

◆ ~Table()

virtual kuzu::storage::Table::~Table ( )
virtualdefault

Member Function Documentation

◆ addColumn()

virtual void kuzu::storage::Table::addColumn ( transaction::Transaction * transaction,
TableAddColumnState & addColumnState )
pure virtual

◆ cast() [1/2]

template<class TARGET >
TARGET & kuzu::storage::Table::cast ( )
inline

◆ cast() [2/2]

template<class TARGET >
const TARGET & kuzu::storage::Table::cast ( ) const
inline

◆ checkpoint()

virtual void kuzu::storage::Table::checkpoint ( common::Serializer & ser,
catalog::TableCatalogEntry * tableEntry )
pure virtual

◆ commit()

virtual void kuzu::storage::Table::commit ( transaction::Transaction * transaction,
LocalTable * localTable )
pure virtual

◆ constructDataChunk()

std::unique_ptr< common::DataChunk > kuzu::storage::Table::constructDataChunk ( const std::vector< common::LogicalType > & types)
protected

◆ delete_()

virtual bool kuzu::storage::Table::delete_ ( transaction::Transaction * transaction,
TableDeleteState & deleteState )
pure virtual

◆ dropColumn()

void kuzu::storage::Table::dropColumn ( )
inline

◆ getDataFH()

BMFileHandle * kuzu::storage::Table::getDataFH ( ) const
inline

◆ getNumRows()

virtual common::row_idx_t kuzu::storage::Table::getNumRows ( )
pure virtual

◆ getTableID()

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

◆ getTableName()

std::string kuzu::storage::Table::getTableName ( ) const
inline

◆ getTableType()

common::TableType kuzu::storage::Table::getTableType ( ) const
inline

◆ initializeScanState()

virtual void kuzu::storage::Table::initializeScanState ( transaction::Transaction * transaction,
TableScanState & readState )
pure virtual

◆ insert()

virtual void kuzu::storage::Table::insert ( transaction::Transaction * transaction,
TableInsertState & insertState )
pure virtual

◆ loadTable()

static std::unique_ptr< Table > kuzu::storage::Table::loadTable ( common::Deserializer & deSer,
const catalog::Catalog & catalog,
StorageManager * storageManager,
MemoryManager * memoryManager,
common::VirtualFileSystem * vfs,
main::ClientContext * context )
static

◆ ptrCast()

template<class TARGET >
TARGET * kuzu::storage::Table::ptrCast ( )
inline

◆ scan()

bool kuzu::storage::Table::scan ( transaction::Transaction * transaction,
TableScanState & scanState )
inline

◆ scanInternal()

virtual bool kuzu::storage::Table::scanInternal ( transaction::Transaction * transaction,
TableScanState & scanState )
protectedpure virtual

◆ serialize()

virtual void kuzu::storage::Table::serialize ( common::Serializer & serializer) const
protectedvirtual

◆ setHasChanges()

void kuzu::storage::Table::setHasChanges ( )
inline

◆ update()

virtual void kuzu::storage::Table::update ( transaction::Transaction * transaction,
TableUpdateState & updateState )
pure virtual

Member Data Documentation

◆ bufferManager

BufferManager* kuzu::storage::Table::bufferManager
protected

◆ dataFH

BMFileHandle* kuzu::storage::Table::dataFH
protected

◆ enableCompression

bool kuzu::storage::Table::enableCompression
protected

◆ hasChanges

bool kuzu::storage::Table::hasChanges
protected

◆ memoryManager

MemoryManager* kuzu::storage::Table::memoryManager
protected

◆ shadowFile

ShadowFile* kuzu::storage::Table::shadowFile
protected

◆ tableID

common::table_id_t kuzu::storage::Table::tableID
protected

◆ tableName

std::string kuzu::storage::Table::tableName
protected

◆ tableType

common::TableType kuzu::storage::Table::tableType
protected

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