Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::ChunkVectorInfo Class Reference
Inheritance diagram for duckdb::ChunkVectorInfo:
Collaboration diagram for duckdb::ChunkVectorInfo:

Public Member Functions

 ChunkVectorInfo (FixedSizeAllocator &allocator, idx_t start, transaction_t insert_id=0)
 
idx_t GetSelVector (ScanOptions options, optional_ptr< SelectionVector > sel_vector, idx_t max_count) const override
 
bool Fetch (TransactionData transaction, row_t row) override
 Returns whether or not a single row in the ChunkInfo should be used or not for the given transaction.
 
void CommitAppend (transaction_t commit_id, idx_t start, idx_t end) override
 
bool Cleanup (transaction_t lowest_transaction) const override
 
string ToString (idx_t max_count) const override
 
void Append (idx_t start, idx_t end, transaction_t commit_id)
 
idx_t Delete (transaction_t transaction_id, row_t rows[], idx_t count)
 
void CommitDelete (transaction_t commit_id, const DeleteInfo &info)
 
bool HasDeletes (transaction_t transaction_id=MAX_TRANSACTION_ID) const override
 
bool AnyDeleted () const
 
bool HasConstantInsertionId () const
 
transaction_t ConstantInsertId () const
 
void Write (WriteStream &writer, transaction_t transaction_id) const override
 
- Public Member Functions inherited from duckdb::ChunkInfo
 ChunkInfo (idx_t start, ChunkInfoType type)
 
idx_t GetCheckpointRowCount (TransactionData transaction, idx_t max_count)
 
idx_t GetCommittedDeletedCount (idx_t max_count) const
 
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Static Public Member Functions

static unique_ptr< ChunkInfoRead (FixedSizeAllocator &allocator, ReadStream &reader)
 
- Static Public Member Functions inherited from duckdb::ChunkInfo
static unique_ptr< ChunkInfoRead (FixedSizeAllocator &allocator, ReadStream &reader)
 

Static Public Attributes

static constexpr const ChunkInfoType TYPE = ChunkInfoType::VECTOR_INFO
 

Private Member Functions

template<class INSERT_OP , class DELETE_OP >
idx_t TemplatedGetSelVector (transaction_t start_time, transaction_t transaction_id, optional_ptr< SelectionVector > sel_vector, idx_t max_count) const
 
IndexPointer GetInsertedPointer () const
 
IndexPointer GetDeletedPointer () const
 
IndexPointer GetInitializedInsertedPointer ()
 
IndexPointer GetInitializedDeletedPointer ()
 

Private Attributes

FixedSizeAllocatorallocator
 
IndexPointer inserted_data
 The transaction ids of the transactions that inserted the tuples (if any)
 
transaction_t constant_insert_id
 The constant insert id (if there is only one)
 
IndexPointer deleted_data
 The transaction ids of the transactions that deleted the tuples (if any)
 

Additional Inherited Members

- Public Attributes inherited from duckdb::ChunkInfo
idx_t start
 The row index of the first row.
 
ChunkInfoType type
 The ChunkInfo type.
 

Member Function Documentation

◆ GetSelVector()

idx_t duckdb::ChunkVectorInfo::GetSelVector ( ScanOptions  options,
optional_ptr< SelectionVector sel_vector,
idx_t  max_count 
) const
overridevirtual

Gets up to max_count entries from the chunk info. If the ret is 0>ret>max_count, the selection vector is filled with the tuples

Implements duckdb::ChunkInfo.

◆ Fetch()

bool duckdb::ChunkVectorInfo::Fetch ( TransactionData  transaction,
row_t  row 
)
overridevirtual

Returns whether or not a single row in the ChunkInfo should be used or not for the given transaction.

Implements duckdb::ChunkInfo.

◆ CommitAppend()

void duckdb::ChunkVectorInfo::CommitAppend ( transaction_t  commit_id,
idx_t  start,
idx_t  end 
)
overridevirtual

Implements duckdb::ChunkInfo.

◆ Cleanup()

bool duckdb::ChunkVectorInfo::Cleanup ( transaction_t  lowest_transaction) const
overridevirtual

Reimplemented from duckdb::ChunkInfo.

◆ ToString()

string duckdb::ChunkVectorInfo::ToString ( idx_t  max_count) const
overridevirtual

Implements duckdb::ChunkInfo.

◆ Delete()

idx_t duckdb::ChunkVectorInfo::Delete ( transaction_t  transaction_id,
row_t  rows[],
idx_t  count 
)

Performs a delete in the ChunkVectorInfo - returns how many tuples were actually deleted The number of rows that were actually deleted might be lower than the input count In case we delete rows that were already deleted Note that "rows" is written to to reflect the row ids that were actually deleted i.e. after calling this function, rows will hold [0..actual_delete_count] row ids of the actually deleted tuples

◆ HasDeletes()

bool duckdb::ChunkVectorInfo::HasDeletes ( transaction_t  transaction_id = MAX_TRANSACTION_ID) const
overridevirtual

Implements duckdb::ChunkInfo.

◆ Write()

void duckdb::ChunkVectorInfo::Write ( WriteStream writer,
transaction_t  transaction_id 
) const
overridevirtual

Reimplemented from duckdb::ChunkInfo.


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