31 namespace CUDF_EXPORT
cudf {
39 class avro_reader_options_builder;
48 std::vector<std::string> _columns;
84 [[nodiscard]] std::vector<std::string>
get_columns()
const {
return _columns; }
105 void set_columns(std::vector<std::string> col_names) { _columns = std::move(col_names); }
159 options._columns = std::move(col_names);
171 options._skip_rows = val;
183 options._num_rows = val;
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::device_async_resource_ref mr=rmm::mr::get_current_device_resource())
Reads an Avro dataset into a set of columns.
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
device_memory_resource * get_current_device_resource()
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.