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

schema element for reader More...

#include <cudf/io/types.hpp>

Public Member Functions

 reader_column_schema (size_type number_of_children)
 Construct a new reader column schema object. More...
 
 reader_column_schema (std::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...
 
reader_column_schemaset_type_length (int32_t type_length)
 Sets the length of fixed length data. More...
 
bool is_enabled_convert_binary_to_strings () const
 Get whether to encode this column as binary or string data. More...
 
int32_t get_type_length () const
 Get the length in bytes of this fixed length data. More...
 
size_t get_num_children () const
 Get the number of child objects. More...
 

Detailed Description

schema element for reader

Definition at line 967 of file 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 982 of file types.hpp.

◆ reader_column_schema() [2/2]

cudf::io::reader_column_schema::reader_column_schema ( std::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 989 of file 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 1000 of file 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 1012 of file 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 1020 of file 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 1070 of file types.hpp.

◆ get_type_length()

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

Get the length in bytes of this fixed length data.

Returns
The length in bytes of the data type

Definition at line 1063 of file 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 1053 of file 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 1030 of file types.hpp.

◆ set_type_length()

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

Sets the length of fixed length data.

Parameters
type_lengthSize of the data type in bytes
Returns
this for chaining

Definition at line 1042 of file types.hpp.


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