|
iceberg-cpp
|
Public Member Functions | |
| Result< std::unique_ptr< InputFile > > | NewInputFile (std::string file_location) override |
| Create an input file handle for the given location. | |
| Result< std::unique_ptr< InputFile > > | NewInputFile (std::string file_location, size_t length) override |
| Create an input file handle for the given location with a known length. | |
| Result< std::unique_ptr< OutputFile > > | NewOutputFile (std::string file_location) override |
| Create an output file handle for the given location. | |
| void | AddFile (std::string file_location, std::span< const std::byte > data) |
| void | AddFile (std::string file_location, std::string_view data) |
| std::vector< std::byte > & | FileData (const std::string &file_location) |
| const std::vector< std::byte > & | FileData (const std::string &file_location) const |
| MOCK_METHOD ((Result< std::string >), ReadFile,(const std::string &, std::optional< size_t >),(override)) | |
| MOCK_METHOD (Status, WriteFile,(const std::string &, std::string_view),(override)) | |
| MOCK_METHOD (Status, DeleteFile,(const std::string &),(override)) | |
Public Member Functions inherited from iceberg::FileIO | |
| virtual Result< std::string > | ReadFile (const std::string &file_location, std::optional< size_t > length) |
| Read the content of the file at the given location. | |
| virtual Status | WriteFile (const std::string &file_location, std::string_view content) |
| Write the given content to the file at the given location. | |
| virtual Status | DeleteFile (const std::string &file_location) |
| Delete a file at the given location. | |
| virtual Status | DeleteFiles (const std::vector< std::string > &file_locations) |
| Delete files at the given locations. | |
| virtual SupportsStorageCredentials * | AsSupportsStorageCredentials () |
| Return storage-credential support when implemented by this FileIO. | |
|
inlineoverridevirtual |
Create an input file handle for the given location.
Reimplemented from iceberg::FileIO.
|
inlineoverridevirtual |
Create an input file handle for the given location with a known length.
The length is a caller-provided content length hint. Implementations may use it to avoid an extra metadata lookup.
Reimplemented from iceberg::FileIO.
|
inlineoverridevirtual |
Create an output file handle for the given location.
Reimplemented from iceberg::FileIO.