Public Member Functions | List of all members
cudf::io::reader_column_schema Class Reference

schema element for reader More...

#include <types.hpp>

Public Member Functions

 reader_column_schema (size_type number_of_children)
 Construct a new reader column schema object. More...
 
 reader_column_schema (host_span< reader_column_schema > const &child_span)
 Construct a new reader column schema object with a span defining the children. More...
 
reader_column_schemaadd_child (reader_column_schema const &child)
 Add the children metadata of this column. More...
 
reader_column_schemachild (size_type i)
 Get reference to a child of this column. More...
 
reader_column_schema const & child (size_type i) const
 Get const reference to a child of this column. More...
 
reader_column_schemaset_convert_binary_to_strings (bool convert_to_string)
 Specifies whether this column should be written as binary or string data Only valid for the following column types: string, list<int8> More...
 
bool is_enabled_convert_binary_to_strings () const
 Get whether to encode this column as binary or string data. More...
 
size_t get_num_children () const
 Get the number of child objects. More...
 

Detailed Description

schema element for reader

Definition at line 910 of file io/types.hpp.

Constructor & Destructor Documentation

◆ reader_column_schema() [1/2]

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

Construct a new reader column schema object.

Parameters
number_of_childrennumber of child schema objects to default construct

Definition at line 924 of file io/types.hpp.

◆ reader_column_schema() [2/2]

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

Construct a new reader column schema object with a span defining the children.

Parameters
child_spanspan of child schema objects

Definition at line 931 of file io/types.hpp.

Member Function Documentation

◆ add_child()

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

Add the children metadata of this column.

Parameters
childThe children metadata of this column to add
Returns
this for chaining

Definition at line 942 of file io/types.hpp.

◆ child() [1/2]

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

Get reference to a child of this column.

Parameters
iIndex of the child to get
Returns
this for chaining

Definition at line 954 of file io/types.hpp.

◆ child() [2/2]

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

Get const reference to a child of this column.

Parameters
iIndex of the child to get
Returns
this for chaining

Definition at line 962 of file io/types.hpp.

◆ get_num_children()

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

Get the number of child objects.

Returns
number of children

Definition at line 993 of file io/types.hpp.

◆ is_enabled_convert_binary_to_strings()

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

Get whether to encode this column as binary or string data.

Returns
Boolean indicating whether to encode this column as binary data

Definition at line 983 of file io/types.hpp.

◆ set_convert_binary_to_strings()

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

Specifies whether this column should be written as binary or string data Only valid for the following column types: string, list<int8>

Parameters
convert_to_stringTrue = convert binary to strings False = return binary
Returns
this for chaining

Definition at line 972 of file io/types.hpp.


The documentation for this class was generated from the following file: