29 namespace CUDF_EXPORT
cudf {
46 std::vector<std::string> _columns;
82 [[nodiscard]] std::vector<std::string>
get_columns()
const {
return _columns; }
103 void set_columns(std::vector<std::string> col_names) { _columns = std::move(col_names); }
157 options._columns = std::move(col_names);
169 options._skip_rows = val;
181 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=cudf::get_current_device_resource_ref())
Reads an Avro dataset into a set of columns.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
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.