21 #include <cudf/utilities/export.hpp>
23 #include <arrow/filesystem/filesystem.h>
24 #include <arrow/io/interfaces.h>
30 namespace CUDF_EXPORT
cudf {
57 : arrow_file(std::move(file))
68 std::unique_ptr<buffer>
host_read(
size_t offset,
size_t size)
override;
78 size_t host_read(
size_t offset,
size_t size, uint8_t* dst)
override;
84 [[nodiscard]]
size_t size()
const override;
87 std::shared_ptr<arrow::fs::FileSystem> filesystem;
88 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.