29 namespace CUDF_EXPORT
cudf {
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;
avro_reader_options_builder()=default
默认构造函数。
avro_reader_options_builder(source_info src)
从源信息构造函数。
avro_reader_options_builder & columns(std::vector< std::string > col_names)
设置要读取的列名。
avro_reader_options_builder & num_rows(size_type val)
设置要读取的行数。
avro_reader_options_builder & skip_rows(size_type val)
设置要跳过的行数。
avro_reader_options && build()
构建完成后移动 avro_reader_options 成员。
avro_reader_options()=default
默认构造函数。
std::vector< std::string > get_columns() const
返回要读取的列名。
static avro_reader_options_builder builder(source_info src)
创建将构建 avro_reader_options 的 avro_reader_options_builder。
void set_skip_rows(size_type val)
设置要跳过的行数。
size_type get_num_rows() const
返回要读取的行数。
source_info const & get_source() const
返回源信息。
void set_columns(std::vector< std::string > col_names)
设置要读取的列名。
void set_num_rows(size_type val)
设置要读取的行数。
size_type get_skip_rows() const
返回从开始跳过的行数。
rmm::cuda_stream_view const get_default_stream()
获取当前的默认流。
table_with_metadata read_avro(avro_reader_options const &options, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
将 Avro 数据集读取到一组列中。
rmm::device_async_resource_ref get_current_device_resource_ref()
获取当前的设备内存资源引用。
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
int32_t size_type
列和表的行索引类型。
(mutable)_table_view 的类定义