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

Public Member Functions

DUCKDB_API CachingFileSystem (FileSystem &file_system, DatabaseInstance &db)
DUCKDB_API unique_ptr< CachingFileHandle > OpenFile (const OpenFileInfo &path, FileOpenFlags flags, optional_ptr< FileOpener > opener=nullptr)
DUCKDB_API unique_ptr< CachingFileHandle > OpenFile (QueryContext context, const OpenFileInfo &path, FileOpenFlags flags, optional_ptr< FileOpener > opener=nullptr)

Static Public Member Functions

static DUCKDB_API CachingFileSystem Get (ClientContext &context)

Private Attributes

FileSystem & file_system
 The Client FileSystem (needs to be client-specific so we can do, e.g., HTTPFS profiling).
DatabaseInstance & db
 The DatabaseInstance.
ExternalFileCache & external_file_cache
 The External File Cache that caches the files.

Friends

struct CachingFileHandle

Detailed Description

CachingFileSystem is a read-only file system that closely resembles the FileSystem API. Instead of reading into a designated buffer, it caches reads using the BufferManager, it returns a BufferHandle and sets a pointer into it

Constructor & Destructor Documentation

◆ CachingFileSystem()

duckdb::CachingFileSystem::CachingFileSystem ( FileSystem & file_system,
DatabaseInstance & db )
388022 : file_system(file_system_p), db(db_p), external_file_cache(ExternalFileCache::Get(db)) {
388023}
ExternalFileCache & external_file_cache
The External File Cache that caches the files.
Definition duckdb.cpp:144799
FileSystem & file_system
The Client FileSystem (needs to be client-specific so we can do, e.g., HTTPFS profiling).
Definition duckdb.cpp:144795
DatabaseInstance & db
The DatabaseInstance.
Definition duckdb.cpp:144797

◆ ~CachingFileSystem()

duckdb::CachingFileSystem::~CachingFileSystem ( )
388025 {
388026}

Member Function Documentation

◆ Get()

CachingFileSystem duckdb::CachingFileSystem::Get ( ClientContext & context)
static
388028 {
388029 return CachingFileSystem(FileSystem::GetFileSystem(context), *context.db);
388030}

◆ OpenFile() [1/2]

unique_ptr< CachingFileHandle > duckdb::CachingFileSystem::OpenFile ( const OpenFileInfo & path,
FileOpenFlags flags,
optional_ptr< FileOpener > opener = nullptr )
388033 {
388034 return make_uniq<CachingFileHandle>(QueryContext(), *this, path, flags, opener,
388035 external_file_cache.GetOrCreateCachedFile(path.path));
388036}

◆ OpenFile() [2/2]

unique_ptr< CachingFileHandle > duckdb::CachingFileSystem::OpenFile ( QueryContext context,
const OpenFileInfo & path,
FileOpenFlags flags,
optional_ptr< FileOpener > opener = nullptr )
388039 {
388040 return make_uniq<CachingFileHandle>(context, *this, path, flags, opener,
388041 external_file_cache.GetOrCreateCachedFile(path.path));
388042}

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