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::UnixFileHandle Struct Reference
Inheritance diagram for duckdb::UnixFileHandle:
Collaboration diagram for duckdb::UnixFileHandle:

Public Member Functions

 UnixFileHandle (FileSystem &file_system, string path, int fd, FileOpenFlags flags)
 
void Close () override
 Closes the file handle.
 
- Public Member Functions inherited from duckdb::FileHandle
DUCKDB_API FileHandle (FileSystem &file_system, string path, FileOpenFlags flags)
 
 FileHandle (const FileHandle &)=delete
 
DUCKDB_API int64_t Read (void *buffer, idx_t nr_bytes)
 
DUCKDB_API int64_t Read (QueryContext context, void *buffer, idx_t nr_bytes)
 
DUCKDB_API int64_t Write (void *buffer, idx_t nr_bytes)
 
DUCKDB_API int64_t Write (QueryContext context, void *buffer, idx_t nr_bytes)
 
DUCKDB_API void Read (void *buffer, idx_t nr_bytes, idx_t location)
 
DUCKDB_API void Read (QueryContext context, void *buffer, idx_t nr_bytes, idx_t location)
 
DUCKDB_API void Write (QueryContext context, void *buffer, idx_t nr_bytes, idx_t location)
 
DUCKDB_API void Seek (idx_t location)
 
DUCKDB_API void Reset ()
 
DUCKDB_API idx_t SeekPosition ()
 
DUCKDB_API void Sync ()
 
DUCKDB_API void Truncate (int64_t new_size)
 
DUCKDB_API string ReadLine ()
 
DUCKDB_API string ReadLine (QueryContext context)
 
DUCKDB_API bool Trim (idx_t offset_bytes, idx_t length_bytes)
 
virtual DUCKDB_API idx_t GetProgress ()
 
virtual DUCKDB_API FileCompressionType GetFileCompressionType ()
 
DUCKDB_API bool CanSeek ()
 
DUCKDB_API bool IsPipe ()
 
DUCKDB_API bool OnDiskFile ()
 
DUCKDB_API idx_t GetFileSize ()
 
DUCKDB_API FileType GetType ()
 
DUCKDB_API FileMetadata Stats ()
 
DUCKDB_API void TryAddLogger (FileOpener &opener)
 
string GetPath () const
 
FileOpenFlags GetFlags () const
 
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Public Attributes

int fd
 
idx_t current_pos = 0
 
- Public Attributes inherited from duckdb::FileHandle
FileSystemfile_system
 
string path
 
FileOpenFlags flags
 
shared_ptr< Loggerlogger
 

Constructor & Destructor Documentation

◆ UnixFileHandle()

duckdb::UnixFileHandle::UnixFileHandle ( FileSystem file_system,
string  path,
int  fd,
FileOpenFlags  flags 
)
inline
78521 : FileHandle(file_system, std::move(path), flags), fd(fd) {
78522 }

◆ ~UnixFileHandle()

duckdb::UnixFileHandle::~UnixFileHandle ( )
inlineoverride
78523 {
78525 }
void Close() override
Closes the file handle.
Definition duckdb.cpp:78533

Member Function Documentation

◆ Close()

void duckdb::UnixFileHandle::Close ( )
inlineoverridevirtual

Closes the file handle.

Implements duckdb::FileHandle.

78533 {
78534 if (fd != -1) {
78535 close(fd);
78536 fd = -1;
78537 DUCKDB_LOG_FILE_SYSTEM_CLOSE((*this));
78538 }
78539 };

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