Settings to use for write_json().
More...
#include <json.hpp>
Settings to use for write_json().
Definition at line 943 of file io/json.hpp.
◆ json_writer_options()
| cudf::io::json_writer_options::json_writer_options |
( |
| ) |
|
|
explicitdefault |
Default constructor.
This has been added since Cython requires a default constructor to create objects on stack.
◆ builder()
◆ enable_include_nulls()
| void cudf::io::json_writer_options::enable_include_nulls |
( |
bool |
val | ) |
|
|
inline |
Enables/Disables output of nulls as 'null'.
- Parameters
-
| val | Boolean value to enable/disable |
Definition at line 1123 of file io/json.hpp.
◆ enable_lines()
| void cudf::io::json_writer_options::enable_lines |
( |
bool |
val | ) |
|
|
inline |
Enables/Disables JSON lines for records format.
- Parameters
-
| val | Boolean value to enable/disable JSON lines |
Definition at line 1130 of file io/json.hpp.
◆ enable_utf8_escaped()
| void cudf::io::json_writer_options::enable_utf8_escaped |
( |
bool |
val | ) |
|
|
inline |
Enable or disable writing escaped UTF-8 characters in JSON output.
Example: With enable_utf8_escaped(false), the string "ẅ" is written as-is instead of: "\u1e85".
- Note
- Enabling this is useful for producing more human-readable JSON.
- Parameters
-
| val | Boolean value to enable/disable UTF-8 escaped output |
Definition at line 1058 of file io/json.hpp.
◆ get_compression()
Returns compression type used for sink.
- Returns
- compression type for sink
Definition at line 1031 of file io/json.hpp.
◆ get_false_value()
| std::string const& cudf::io::json_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 1086 of file io/json.hpp.
◆ get_metadata()
| std::optional<table_metadata> const& cudf::io::json_writer_options::get_metadata |
( |
| ) |
const |
|
inline |
Returns metadata information.
- Returns
- Metadata information
Definition at line 1017 of file io/json.hpp.
◆ get_na_rep()
| std::string const& cudf::io::json_writer_options::get_na_rep |
( |
| ) |
const |
|
inline |
Returns string to used for null entries.
- Returns
- string to used for null entries
Definition at line 1024 of file io/json.hpp.
◆ get_rows_per_chunk()
| size_type cudf::io::json_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 1072 of file io/json.hpp.
◆ get_sink()
| sink_info const& cudf::io::json_writer_options::get_sink |
( |
| ) |
const |
|
inline |
Returns sink used for writer output.
- Returns
- sink used for writer output
Definition at line 1003 of file io/json.hpp.
◆ get_table()
| table_view const& cudf::io::json_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 1010 of file io/json.hpp.
◆ get_true_value()
| std::string const& cudf::io::json_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 1079 of file io/json.hpp.
◆ is_enabled_include_nulls()
| bool cudf::io::json_writer_options::is_enabled_include_nulls |
( |
| ) |
const |
|
inline |
Whether to output nulls as 'null'.
- Returns
true if nulls are output as 'null'
Definition at line 1038 of file io/json.hpp.
◆ is_enabled_lines()
| bool cudf::io::json_writer_options::is_enabled_lines |
( |
| ) |
const |
|
inline |
Whether to use JSON lines for records format.
- Returns
true if JSON lines is used for records format
Definition at line 1045 of file io/json.hpp.
◆ is_enabled_utf8_escaped()
| bool cudf::io::json_writer_options::is_enabled_utf8_escaped |
( |
| ) |
const |
|
inline |
Check whether UTF-8 escaped output is enabled.
- Returns
- true if UTF-8 escaped output is enabled, false otherwise
Definition at line 1065 of file io/json.hpp.
◆ set_compression()
| void cudf::io::json_writer_options::set_compression |
( |
compression_type |
comptype | ) |
|
|
inline |
Sets compression type to be used.
- Parameters
-
| comptype | Compression type for sink |
Definition at line 1102 of file io/json.hpp.
◆ set_false_value()
| void cudf::io::json_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 1151 of file io/json.hpp.
◆ set_metadata()
| void cudf::io::json_writer_options::set_metadata |
( |
table_metadata |
metadata | ) |
|
|
inline |
Sets metadata.
- Parameters
-
| metadata | Associated metadata |
Definition at line 1109 of file io/json.hpp.
◆ set_na_rep()
| void cudf::io::json_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 1116 of file io/json.hpp.
◆ set_rows_per_chunk()
| void cudf::io::json_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 1137 of file io/json.hpp.
◆ set_table()
| void cudf::io::json_writer_options::set_table |
( |
table_view |
tbl | ) |
|
|
inline |
Sets table to be written to output.
- Parameters
-
Definition at line 1095 of file io/json.hpp.
◆ set_true_value()
| void cudf::io::json_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 1144 of file io/json.hpp.
The documentation for this class was generated from the following file: