|
| | FileSystem (std::shared_ptr< arrow::fs::FileSystem > arrow_fs) |
| | Create a FileSystem instance. More...
|
| |
| Result< std::shared_ptr< arrow::Table > > | ReadFileToTable (const std::string &path, FileType file_type, const util::FilterOptions &options={}) const noexcept |
| | Read and filter a file as an arrow::Table. More...
|
| |
|
Result< std::shared_ptr< arrow::Table > > | ReadFileToTable (const std::string &path, FileType file_type, const std::vector< int > &column_indices) const noexcept |
| |
| template<typename T > |
| Result< T > | ReadFileToValue (const std::string &path) const noexcept |
| | Read a file and convert its bytes to a value of type T. More...
|
| |
| template<typename T > |
| Status | WriteValueToFile (const T &value, const std::string &path) const noexcept |
| | Write a value of type T to a file. More...
|
| |
| Status | WriteTableToFile (const std::shared_ptr< arrow::Table > &table, FileType file_type, const std::string &path, const std::shared_ptr< WriterOptions > &options) const noexcept |
| | Write a table to a file with a specific type. More...
|
| |
| Status | WriteLabelTableToFile (const std::shared_ptr< arrow::Table > &table, const std::string &path) const noexcept |
| | Write a label table to a file with parquet type. More...
|
| |
| Status | CopyFile (const std::string &src_path, const std::string &dst_path) const noexcept |
| |
| Result< IdType > | GetFileNumOfDir (const std::string &dir_path, bool recursive=false) const noexcept |
| |
|
template<> |
| Result< std::string > | ReadFileToValue (const std::string &path) const noexcept |
| |
|
template<> |
| Status | WriteValueToFile (const std::string &value, const std::string &path) const noexcept |
| |
This class wraps an arrow::fs::FileSystem and provides methods for reading and writing arrow::Table objects from and to files, as well as performing other file system operations such as copying and counting files.
Definition at line 59 of file filesystem.h.