Settings to use for write_csv().
More...
#include <cudf/io/csv.hpp>
Settings to use for write_csv().
Definition at line 1370 of file csv.hpp.
◆ csv_writer_options()
| cudf::io::csv_writer_options::csv_writer_options |
( |
| ) |
|
|
explicitdefault |
Default constructor.
This has been added since Cython requires a default constructor to create objects on stack.
◆ builder()
◆ enable_include_header()
| void cudf::io::csv_writer_options::enable_include_header |
( |
bool |
val | ) |
|
|
inline |
Enables/Disables headers being written to csv.
- Parameters
-
| val | Boolean value to enable/disable |
Definition at line 1527 of file csv.hpp.
◆ get_false_value()
| std::string const& cudf::io::csv_writer_options::get_false_value |
( |
| ) |
const |
|
inline |
Returns string used for values == 0 in INT8 types.
- Returns
- string used for values == 0 in INT8 types
Definition at line 1493 of file csv.hpp.
◆ get_inter_column_delimiter()
| char cudf::io::csv_writer_options::get_inter_column_delimiter |
( |
| ) |
const |
|
inline |
Returns character used for separating column values.
- Returns
- Character used for separating column values.
Definition at line 1479 of file csv.hpp.
◆ get_line_terminator()
| std::string const& cudf::io::csv_writer_options::get_line_terminator |
( |
| ) |
const |
|
inline |
Returns character used for separating lines.
- Returns
- Character used for separating lines
Definition at line 1472 of file csv.hpp.
◆ get_na_rep()
| std::string const& cudf::io::csv_writer_options::get_na_rep |
( |
| ) |
const |
|
inline |
Returns string to used for null entries.
- Returns
- string to used for null entries
Definition at line 1451 of file csv.hpp.
◆ get_names()
| std::vector<std::string> const& cudf::io::csv_writer_options::get_names |
( |
| ) |
const |
|
inline |
Returns names of the columns.
- Returns
- Names of the columns in the output file
Definition at line 1444 of file csv.hpp.
◆ get_quoting()
| quote_style cudf::io::csv_writer_options::get_quoting |
( |
| ) |
const |
|
inline |
Returns the quote style for the writer.
Note: Only MINIMAL and NONE are supported.
- MINIMAL: String columns containing special characters like row-delimiters field-delimiter/quotes will be quoted.
- NONE: No quoting is done for any columns.
- Returns
- quote_style The quote style for the writer
Definition at line 1505 of file csv.hpp.
◆ get_rows_per_chunk()
| size_type cudf::io::csv_writer_options::get_rows_per_chunk |
( |
| ) |
const |
|
inline |
Returns maximum number of rows to process for each file write.
- Returns
- Maximum number of rows to process for each file write
Definition at line 1465 of file csv.hpp.
◆ get_sink()
| sink_info const& cudf::io::csv_writer_options::get_sink |
( |
| ) |
const |
|
inline |
Returns sink used for writer output.
- Returns
- sink used for writer output
Definition at line 1430 of file csv.hpp.
◆ get_table()
| table_view const& cudf::io::csv_writer_options::get_table |
( |
| ) |
const |
|
inline |
Returns table that would be written to output.
- Returns
- Table that would be written to output
Definition at line 1437 of file csv.hpp.
◆ get_true_value()
| std::string const& cudf::io::csv_writer_options::get_true_value |
( |
| ) |
const |
|
inline |
Returns string used for values != 0 in INT8 types.
- Returns
- string used for values != 0 in INT8 types
Definition at line 1486 of file csv.hpp.
◆ is_enabled_include_header()
| bool cudf::io::csv_writer_options::is_enabled_include_header |
( |
| ) |
const |
|
inline |
Whether to write headers to csv.
- Returns
true if writing headers to csv
Definition at line 1458 of file csv.hpp.
◆ set_false_value()
| void cudf::io::csv_writer_options::set_false_value |
( |
std::string |
val | ) |
|
|
inline |
Sets string used for values == 0 in INT8 types.
- Parameters
-
| val | String to represent values == 0 in INT8 types |
Definition at line 1562 of file csv.hpp.
◆ set_inter_column_delimiter()
| void cudf::io::csv_writer_options::set_inter_column_delimiter |
( |
char |
delim | ) |
|
|
inline |
Sets character used for separating column values.
- Parameters
-
| delim | Character to delimit column values |
Definition at line 1548 of file csv.hpp.
◆ set_line_terminator()
| void cudf::io::csv_writer_options::set_line_terminator |
( |
std::string |
term | ) |
|
|
inline |
Sets character used for separating lines.
- Parameters
-
| term | Character to represent line termination |
Definition at line 1541 of file csv.hpp.
◆ set_na_rep()
| void cudf::io::csv_writer_options::set_na_rep |
( |
std::string |
val | ) |
|
|
inline |
Sets string to used for null entries.
- Parameters
-
| val | String to represent null value |
Definition at line 1520 of file csv.hpp.
◆ set_names()
| void cudf::io::csv_writer_options::set_names |
( |
std::vector< std::string > |
names | ) |
|
|
inline |
Sets optional associated column names.
- Parameters
-
| names | Associated column names |
Definition at line 1513 of file csv.hpp.
◆ set_quoting()
| void cudf::io::csv_writer_options::set_quoting |
( |
quote_style |
quoting | ) |
|
|
inline |
Sets the quote style for the writer.
Note: Only the following quote styles are supported:
- MINIMAL: String columns containing special characters like row-delimiters/ field-delimiter/quotes will be quoted.
- NONE: No quoting is done for any columns.
- Parameters
-
| quoting | The new quote_style for the writer. |
Definition at line 1581 of file csv.hpp.
◆ set_rows_per_chunk()
| void cudf::io::csv_writer_options::set_rows_per_chunk |
( |
size_type |
val | ) |
|
|
inline |
Sets maximum number of rows to process for each file write.
- Parameters
-
| val | Number of rows per chunk |
Definition at line 1534 of file csv.hpp.
◆ set_table()
| void cudf::io::csv_writer_options::set_table |
( |
table_view const & |
table | ) |
|
|
inline |
(Re)sets the table being written.
- Parameters
-
Definition at line 1569 of file csv.hpp.
◆ set_true_value()
| void cudf::io::csv_writer_options::set_true_value |
( |
std::string |
val | ) |
|
|
inline |
Sets string used for values != 0 in INT8 types.
- Parameters
-
| val | String to represent values != 0 in INT8 types |
Definition at line 1555 of file csv.hpp.
The documentation for this class was generated from the following file: