libcudf  23.12.00
Public Member Functions | List of all members
cudf::io::orc_reader_options_builder Class Reference

Builds settings to use for read_orc(). More...

#include <orc.hpp>

Public Member Functions

 orc_reader_options_builder ()=default
 Default constructor. More...
 
 orc_reader_options_builder (source_info src)
 Constructor from source info. More...
 
orc_reader_options_buildercolumns (std::vector< std::string > col_names)
 Sets names of the column to read. More...
 
orc_reader_options_builderstripes (std::vector< std::vector< size_type >> stripes)
 Sets list of individual stripes to read per source. More...
 
orc_reader_options_builderskip_rows (uint64_t rows)
 Sets number of rows to skip from the start. More...
 
orc_reader_options_buildernum_rows (size_type nrows)
 Sets number of row to read. More...
 
orc_reader_options_builderuse_index (bool use)
 Enable/Disable use of row index to speed-up reading. More...
 
orc_reader_options_builderuse_np_dtypes (bool use)
 Enable/Disable use of numpy-compatible dtypes. More...
 
orc_reader_options_buildertimestamp_type (data_type type)
 Sets timestamp type to which timestamp column will be cast. More...
 
orc_reader_options_builderdecimal128_columns (std::vector< std::string > val)
 Columns that should be read as 128-bit Decimal. More...
 
 operator orc_reader_options && ()
 move orc_reader_options member once it's built.
 
orc_reader_options && build ()
 move orc_reader_options member once it's built. More...
 

Detailed Description

Builds settings to use for read_orc().

Definition at line 256 of file orc.hpp.

Constructor & Destructor Documentation

◆ orc_reader_options_builder() [1/2]

cudf::io::orc_reader_options_builder::orc_reader_options_builder ( )
explicitdefault

Default constructor.

This has been added since Cython requires a default constructor to create objects on stack.

◆ orc_reader_options_builder() [2/2]

cudf::io::orc_reader_options_builder::orc_reader_options_builder ( source_info  src)
inlineexplicit

Constructor from source info.

Parameters
srcThe source information used to read orc file

Definition at line 272 of file orc.hpp.

Member Function Documentation

◆ build()

orc_reader_options&& cudf::io::orc_reader_options_builder::build ( )
inline

move orc_reader_options member once it's built.

This has been added since Cython does not support overloading of conversion operators.

Returns
Built orc_reader_options object's r-value reference

Definition at line 382 of file orc.hpp.

◆ columns()

orc_reader_options_builder& cudf::io::orc_reader_options_builder::columns ( std::vector< std::string >  col_names)
inline

Sets names of the column to read.

Parameters
col_namesVector of column names
Returns
this for chaining

Definition at line 280 of file orc.hpp.

◆ decimal128_columns()

orc_reader_options_builder& cudf::io::orc_reader_options_builder::decimal128_columns ( std::vector< std::string >  val)
inline

Columns that should be read as 128-bit Decimal.

Parameters
valVector of column names
Returns
this for chaining

Definition at line 364 of file orc.hpp.

◆ num_rows()

orc_reader_options_builder& cudf::io::orc_reader_options_builder::num_rows ( size_type  nrows)
inline

Sets number of row to read.

Parameters
nrowsNumber of rows
Returns
this for chaining

Definition at line 316 of file orc.hpp.

◆ skip_rows()

orc_reader_options_builder& cudf::io::orc_reader_options_builder::skip_rows ( uint64_t  rows)
inline

Sets number of rows to skip from the start.

Parameters
rowsNumber of rows
Returns
this for chaining

Definition at line 304 of file orc.hpp.

◆ stripes()

orc_reader_options_builder& cudf::io::orc_reader_options_builder::stripes ( std::vector< std::vector< size_type >>  stripes)
inline

Sets list of individual stripes to read per source.

Parameters
stripesVector of vectors, mapping stripes to read to input sources
Returns
this for chaining

Definition at line 292 of file orc.hpp.

◆ timestamp_type()

orc_reader_options_builder& cudf::io::orc_reader_options_builder::timestamp_type ( data_type  type)
inline

Sets timestamp type to which timestamp column will be cast.

Parameters
typeType of timestamp
Returns
this for chaining

Definition at line 352 of file orc.hpp.

◆ use_index()

orc_reader_options_builder& cudf::io::orc_reader_options_builder::use_index ( bool  use)
inline

Enable/Disable use of row index to speed-up reading.

Parameters
useBoolean value to enable/disable row index use
Returns
this for chaining

Definition at line 328 of file orc.hpp.

◆ use_np_dtypes()

orc_reader_options_builder& cudf::io::orc_reader_options_builder::use_np_dtypes ( bool  use)
inline

Enable/Disable use of numpy-compatible dtypes.

Parameters
useBoolean value to enable/disable
Returns
this for chaining

Definition at line 340 of file orc.hpp.


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