Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-7444: [GLib] Add LocalFileSystem support
TODO: - [x] Implementation - [x] Make GArrowFileType an GEnum type - [x] Make setters and getters of GArrowFileStats properties - [x] Write tests Closes #6105 from mrkn/ARROW-7444 and squashes the following commits: 3726abd <Sutou Kouhei> Use method 9f4d0f7 <Sutou Kouhei> Simplify API a4ed9a2 <Sutou Kouhei> Adjust style a042e54 <Sutou Kouhei> Add tests GBytes version reads 19eb216 <Sutou Kouhei> Implement garrow_file_system_open_input_file() 1c1a504 <Sutou Kouhei> Add garrow_seekable_input_stream_read_at_bytes() 0013736 <Sutou Kouhei> Add garrow_seekable_input_stream_new_raw() 2944a19 <Sutou Kouhei> Remove needless "" tag 4d2c328 <Sutou Kouhei> Use fs::FileInfo a380282 <Sutou Kouhei> Fix document 6129632 <Sutou Kouhei> Use "dir" instead of "directory" for API 22cfe38 <Sutou Kouhei> Use nonexistent because not-found isn't suitable for file selector 2e20ad6 <Sutou Kouhei> Add garrow_file_stats_to_string() d62ef8e <Sutou Kouhei> Document missing garrow_file_stats_is_file() and is_directory() 9764716 <Sutou Kouhei> Use "directory" instead of "dir" 06dfda6 <Sutou Kouhei> Use arrow::fs::kNoSize and kNoTime to get the minimum value 7fa2a03 <Sutou Kouhei> Fold long lines ca3d350 <Sutou Kouhei> Remove wrong const a3939c5 <Sutou Kouhei> Use G_DECLARE_INTERFACE acf4035 <Sutou Kouhei> Use not_found instead of non_existent cfbe3e6 <Sutou Kouhei> Keep reference to base file system cc434d7 <Sutou Kouhei> Don't put tests into helper/ 8ff0af3 <Sutou Kouhei> Add garrow_readable_read_bytes() and use it in test d924772 <Sutou Kouhei> Ensure destroy a read buffer for stream 9a88c17 <Sutou Kouhei> Add missing include 44d0ef5 <Sutou Kouhei> Document missing parameter d91335e <Sutou Kouhei> Improve readable method name for building GArrowBuffer 9b3284f <Sutou Kouhei> Don't use duplicated ID 3b9404a <Sutou Kouhei> Improve test case names 990684e <Sutou Kouhei> Don't access to a buffer read from a closed stream 566f2dc <Kenta Murata> Rename garrow_file_stats_list_new 59724ea <Kenta Murata> Use g_strndup to return a temporary string fe26c83 <Kenta Murata> Use garrow_file_stats_get_raw 24ec232 <Kenta Murata> Use placement new to initialize a shared_ptr of FileSystem member d15b190 <Kenta Murata> Get the default property values from a arrow::fs::FileStats object 0431b40 <Kenta Murata> Fix parameter long names 6dd6878 <Kenta Murata> Remove trailing periods from parameter descriptions 994f5d7 <Kenta Murata> Fix an error tag 0b61376 <Kenta Murata> Replace "file_system" to "file-system" in a param name 042f75c <Kenta Murata> Replace "filesystem" to "file system" or "file-system" appropriately 34bc4b4 <Kenta Murata> Remove needless TODO mark 76a049b <Kenta Murata> Add tests of GArrowSlowFileSystem 8262060 <Kenta Murata> Rewrite test-local-file-system.rb 110ffd9 <Sutou Kouhei> Add component availability check 8f4dfa4 <Kenta Murata> Fix function names 8806015 <Kenta Murata> Fix coding style 3b19ea3 <Kenta Murata> Include file-system and local-file-system in documentation 09ef670 <Kenta Murata> Add a section for local file system in documentation 6c831f7 <Kenta Murata> Use "file-system" instead of "file_system" 3c86869 <Kenta Murata> Update arrow-glib/Makefile.am 6a62eb6 <Kenta Murata> Fix gi annotations and tests 79046e1 <Kenta Murata> Add tests of GArrowLocalFileSystem 1d62528 <Kenta Murata> Make attributes of LocalFileSystemOptions properties 68c5d1c <Kenta Murata> Add tests of GArrowFileSelector 463703d <Kenta Murata> Remove needless prototype declarations 10762e9 <Kenta Murata> Add tests of GArrowFileStats dcc16b0 <Kenta Murata> Fix the default value of GArrowFileStats:size and GArrowFileStats:mtime d9c3da0 <Kenta Murata> Add the missing prototype declaration of garrow_file_stats_equal e0ce704 <Kenta Murata> Fix the default value of GArrowFileStats:type 1a5e963 <Kenta Murata> Remove accessors of FileStats 58e1601 <Kenta Murata> Make attributes of FileStats properties 1b4d8af <Kenta Murata> Stop using unique_ptr to keep FileStats and FileSelector in a GObject 4a205b6 <Kenta Murata> Return the result of garrow::check edd9d89 <Kenta Murata> Replace _ with - in error messages 24c5d6b <Kenta Murata> Fix suffixes of function names 0aa9976 <Kenta Murata> Make anonymous functions static ones 64249da <Kenta Murata> Use unique_ptr to keep a arrow::fs::FileStats instance b9ef9d0 <Kenta Murata> Make attributes of GArrowFileSelector properties 88157d8 <Kenta Murata> Aline the trailing backslashes 0ae6b97 <Kenta Murata> Use static_cast 71083f0 <Kenta Murata> Remove empty get_property functions cb5288f <Kenta Murata> Add GArrowLocalFileSystem 418525c <Kenta Murata> Add GArrowFileSystem Lead-authored-by: Kenta Murata <mrkn@mrkn.jp> Co-authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
- Loading branch information