libcudf
23.12.00
|
Settings to use for write_csv()
.
More...
#include <csv.hpp>
Public Member Functions | |
csv_writer_options ()=default | |
Default constructor. More... | |
sink_info const & | get_sink () const |
Returns sink used for writer output. More... | |
table_view const & | get_table () const |
Returns table that would be written to output. More... | |
std::vector< std::string > const & | get_names () const |
Returns names of the columns. More... | |
std::string | get_na_rep () const |
Returns string to used for null entries. More... | |
bool | is_enabled_include_header () const |
Whether to write headers to csv. More... | |
size_type | get_rows_per_chunk () const |
Returns maximum number of rows to process for each file write. More... | |
std::string | get_line_terminator () const |
Returns character used for separating lines. More... | |
char | get_inter_column_delimiter () const |
Returns character used for separating column values. More... | |
std::string | get_true_value () const |
Returns string used for values != 0 in INT8 types. More... | |
std::string | get_false_value () const |
Returns string used for values == 0 in INT8 types. More... | |
quote_style | get_quoting () const |
Returns the quote style for the writer. More... | |
void | set_names (std::vector< std::string > names) |
Sets optional associated column names. More... | |
void | set_na_rep (std::string val) |
Sets string to used for null entries. More... | |
void | enable_include_header (bool val) |
Enables/Disables headers being written to csv. More... | |
void | set_rows_per_chunk (size_type val) |
Sets maximum number of rows to process for each file write. More... | |
void | set_line_terminator (std::string term) |
Sets character used for separating lines. More... | |
void | set_inter_column_delimiter (char delim) |
Sets character used for separating column values. More... | |
void | set_true_value (std::string val) |
Sets string used for values != 0 in INT8 types. More... | |
void | set_false_value (std::string val) |
Sets string used for values == 0 in INT8 types. More... | |
void | set_table (table_view const &table) |
(Re)sets the table being written. More... | |
void | set_quoting (quote_style quoting) |
Sets the quote style for the writer. More... | |
Static Public Member Functions | |
static csv_writer_options_builder | builder (sink_info const &sink, table_view const &table) |
Create builder to create csv_writer_options . More... | |
Settings to use for write_csv()
.
|
explicitdefault |
Default constructor.
This has been added since Cython requires a default constructor to create objects on stack.
|
static |
Create builder to create csv_writer_options
.
sink | The sink used for writer output |
table | Table to be written to output |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the quote style for the writer.
Note: Only MINIMAL and NONE are supported.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets the quote style for the writer.
Note: Only the following quote styles are supported:
quoting | The new quote_style for the writer. |
|
inline |
|
inline |
|
inline |