24 #include <rmm/mr/device/per_device_resource.hpp>
38 class avro_reader_options_builder;
47 std::vector<std::string> _columns;
83 [[nodiscard]] std::vector<std::string>
get_columns()
const {
return _columns; }
104 void set_columns(std::vector<std::string> col_names) { _columns = std::move(col_names); }
158 options._columns = std::move(col_names);
170 options._skip_rows = val;
182 options._num_rows = val;
219 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
Builder to build options for read_avro().
avro_reader_options_builder()=default
Default constructor.
avro_reader_options_builder(source_info src)
Constructor from source info.
avro_reader_options_builder & columns(std::vector< std::string > col_names)
Set names of the column to be read.
avro_reader_options_builder & num_rows(size_type val)
Sets number of rows to read.
avro_reader_options_builder & skip_rows(size_type val)
Sets number of rows to skip.
avro_reader_options && build()
move avro_reader_options member once it's built.
Settings to use for read_avro().
avro_reader_options()=default
Default constructor.
std::vector< std::string > get_columns() const
Returns names of the columns to be read.
static avro_reader_options_builder builder(source_info src)
create avro_reader_options_builder which will build avro_reader_options.
void set_skip_rows(size_type val)
Sets number of rows to skip.
size_type get_num_rows() const
Returns number of rows to read.
source_info const & get_source() const
Returns source info.
void set_columns(std::vector< std::string > col_names)
Set names of the column to be read.
void set_num_rows(size_type val)
Sets number of rows to read.
size_type get_skip_rows() const
Returns number of rows to skip from the start.
table_with_metadata read_avro(avro_reader_options const &options, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Reads an Avro dataset into a set of columns.
int32_t size_type
Row index type for columns and tables.
Source information for read interfaces.
Class definitions for (mutable)_table_view
Type declarations for libcudf.