公有成员函数 | 所有成员列表
cudf::io::reader_column_schema 类参考

读取器的 schema 元素 更多...

#include <types.hpp>

公有成员函数

 reader_column_schema (size_type number_of_children)
 构造一个新的读取器列 schema 对象。 更多...
 
 reader_column_schema (host_span< reader_column_schema > const &child_span)
 构造一个新的读取器列 schema 对象,使用定义子元素的 span。 更多...
 
reader_column_schemaadd_child (reader_column_schema const &child)
 添加此列的子元素元数据。 更多...
 
reader_column_schemachild (size_type i)
 获取此列子元素的引用。 更多...
 
reader_column_schema const & child (size_type i) const
 获取此列子元素的 const 引用。 更多...
 
reader_column_schemaset_convert_binary_to_strings (bool convert_to_string)
 指定此列应被视为二进制数据还是字符串数据。仅对以下列类型有效: string, list<int8> 更多...
 
reader_column_schemaset_type_length (int32_t type_length)
 设置固定长度数据的长度。 更多...
 
bool is_enabled_convert_binary_to_strings () const
 获取是否应将此列视为二进制数据或字符串数据。 更多...
 
int32_t get_type_length () const
 获取此固定长度数据的字节长度。 更多...
 
size_t get_num_children () const
 获取子对象的数量。 更多...
 

详细描述

读取器的 schema 元素

定义于文件 io/types.hpp 的第 997 行。

构造函数与析构函数文档

◆ reader_column_schema() [1/2]

cudf::io::reader_column_schema::reader_column_schema ( size_type  number_of_children)
inline

构造一个新的读取器列 schema 对象。

参数
number_of_children要默认构造的子 schema 对象的数量

定义于文件 io/types.hpp 的第 1012 行。

◆ reader_column_schema() [2/2]

cudf::io::reader_column_schema::reader_column_schema ( host_span< reader_column_schema > const &  child_span)
inline

构造一个新的读取器列 schema 对象,使用定义子元素的 span。

参数
child_span子 schema 对象的 span

定义于文件 io/types.hpp 的第 1019 行。

成员函数文档

◆ add_child()

reader_column_schema& cudf::io::reader_column_schema::add_child ( reader_column_schema const &  child)
inline

添加此列的子元素元数据。

参数
child要添加的此列子元素元数据
返回值
返回 this 用于链式调用

定义于文件 io/types.hpp 的第 1030 行。

◆ child() [1/2]

reader_column_schema& cudf::io::reader_column_schema::child ( size_type  i)
inline

获取此列子元素的引用。

参数
i要获取的子元素的索引
返回值
返回 this 用于链式调用

定义于文件 io/types.hpp 的第 1042 行。

◆ child() [2/2]

reader_column_schema const& cudf::io::reader_column_schema::child ( size_type  i) const
inline

获取此列子元素的 const 引用。

参数
i要获取的子元素的索引
返回值
返回 this 用于链式调用

定义于文件 io/types.hpp 的第 1050 行。

◆ get_num_children()

size_t cudf::io::reader_column_schema::get_num_children ( ) const
inline

获取子对象的数量。

返回值
子元素的数量

定义于文件 io/types.hpp 的第 1100 行。

◆ get_type_length()

int32_t cudf::io::reader_column_schema::get_type_length ( ) const
inline

获取此固定长度数据的字节长度。

返回值
数据类型的字节长度

定义于文件 io/types.hpp 的第 1093 行。

◆ is_enabled_convert_binary_to_strings()

bool cudf::io::reader_column_schema::is_enabled_convert_binary_to_strings ( ) const
inline

获取是否应将此列视为二进制数据或字符串数据。

返回值
指示是否应将此列视为二进制数据的布尔值

定义于文件 io/types.hpp 的第 1083 行。

◆ set_convert_binary_to_strings()

reader_column_schema& cudf::io::reader_column_schema::set_convert_binary_to_strings ( bool  convert_to_string)
inline

指定此列应被视为二进制数据还是字符串数据。仅对以下列类型有效: string, list<int8>

参数
convert_to_stringTrue = 将二进制转换为字符串 False = 返回二进制
返回值
返回 this 用于链式调用

定义于文件 io/types.hpp 的第 1060 行。

◆ set_type_length()

reader_column_schema& cudf::io::reader_column_schema::set_type_length ( int32_t  type_length)
inline

设置固定长度数据的长度。

参数
type_length数据类型的字节大小
返回值
返回 this 用于链式调用

定义于文件 io/types.hpp 的第 1072 行。


此类的文档由以下文件生成