21 #include <arrow/filesystem/filesystem.h>
22 #include <arrow/io/interfaces.h>
52 explicit arrow_io_source(std::shared_ptr<arrow::io::RandomAccessFile> file) : arrow_file(file) {}
77 [[nodiscard]]
size_t size()
const override;
80 std::shared_ptr<arrow::fs::FileSystem> filesystem;
81 std::shared_ptr<arrow::io::RandomAccessFile> arrow_file;
Implementation class for reading from an Apache Arrow file. The file could be a memory-mapped file or...
arrow_io_source(std::string const &arrow_uri)
Constructs an object from an Apache Arrow Filesystem URI.
size_t host_read(size_t offset, size_t size, uint8_t *dst) override
Reads a selected range from the arrow source into a preallocated buffer.
arrow_io_source(std::shared_ptr< arrow::io::RandomAccessFile > file)
Constructs an object from an arrow source object.
size_t size() const override
Returns the size of the data in the arrow source.
std::unique_ptr< buffer > host_read(size_t offset, size_t size) override
Returns a buffer with a subset of data from the arrow source.
Interface class for providing input data to the readers.