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::Block Class Reference
Inheritance diagram for duckdb::Block:
Collaboration diagram for duckdb::Block:

Public Member Functions

 Block (BlockAllocator &allocator, const block_id_t id, const idx_t block_size, const idx_t block_header_size)
 Block (BlockAllocator &allocator, block_id_t id, uint32_t internal_size, idx_t block_header_size)
 Block (BlockAllocator &allocator, const block_id_t id, BlockManager &block_manager)
 Block (FileBuffer &source, block_id_t id, idx_t block_header_size)
Public Member Functions inherited from duckdb::FileBuffer
 FileBuffer (BlockAllocator &allocator, FileBufferType type, uint64_t user_size, idx_t block_header_size)
 FileBuffer (BlockAllocator &allocator, FileBufferType type, BlockManager &block_manager)
 FileBuffer (FileBuffer &source, FileBufferType type, idx_t block_header_size)
void Read (QueryContext context, FileHandle &handle, uint64_t location)
 Read into the FileBuffer from the location.
void Write (QueryContext context, FileHandle &handle, const uint64_t location)
 Write the FileBuffer to the location.
void Clear ()
FileBufferType GetBufferType () const
void Resize (uint64_t user_size, idx_t block_header_size)
void Resize (BlockManager &block_manager)
idx_t GetHeaderSize () const
uint64_t AllocSize () const
uint64_t Size () const
data_ptr_t InternalBuffer ()
MemoryRequirement CalculateMemory (uint64_t user_size, uint64_t block_header_size) const
void Initialize (DebugInitialize info)

Public Attributes

block_id_t id
Public Attributes inherited from duckdb::FileBuffer
BlockAllocator & allocator
data_ptr_t buffer
 The buffer that users can write to.
uint64_t size

Additional Inherited Members

Protected Member Functions inherited from duckdb::FileBuffer
void ReallocBuffer (idx_t new_size)
void Init ()
Protected Attributes inherited from duckdb::FileBuffer
FileBufferType type
 The type of the buffer.
data_ptr_t internal_buffer
uint64_t internal_size

Constructor & Destructor Documentation

◆ Block() [1/4]

duckdb::Block::Block ( BlockAllocator & allocator,
const block_id_t id,
const idx_t block_size,
const idx_t block_header_size )
386248 : FileBuffer(allocator, FileBufferType::BLOCK, block_size, block_header_size), id(id) {
386249}
FileBuffer(BlockAllocator &allocator, FileBufferType type, uint64_t user_size, idx_t block_header_size)
Definition duckdb.cpp:72797

◆ Block() [2/4]

duckdb::Block::Block ( BlockAllocator & allocator,
block_id_t id,
uint32_t internal_size,
idx_t block_header_size )
386252 : FileBuffer(allocator, FileBufferType::BLOCK, internal_size, block_header_size), id(id) {
386253 D_ASSERT((AllocSize() & (Storage::SECTOR_SIZE - 1)) == 0);
386254}
uint64_t internal_size
Definition duckdb.hpp:7665
static constexpr idx_t SECTOR_SIZE
The size of a hard disk sector, only really needed for Direct IO.
Definition duckdb.hpp:9705

◆ Block() [3/4]

duckdb::Block::Block ( BlockAllocator & allocator,
const block_id_t id,
BlockManager & block_manager )
386257 : FileBuffer(allocator, FileBufferType::BLOCK, block_manager), id(id) {
386258 D_ASSERT((AllocSize() & (Storage::SECTOR_SIZE - 1)) == 0);
386259}

◆ Block() [4/4]

duckdb::Block::Block ( FileBuffer & source,
block_id_t id,
idx_t block_header_size )
386262 : FileBuffer(source, FileBufferType::BLOCK, block_header_size), id(id) {
386263 D_ASSERT((AllocSize() & (Storage::SECTOR_SIZE - 1)) == 0);
386264}

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