Builds settings to use for read_json().
More...
#include <json.hpp>
Public Member Functions | |
| json_reader_options_builder ()=default | |
| Default constructor. More... | |
| json_reader_options_builder (source_info src) | |
| Constructor from source info. More... | |
| json_reader_options_builder & | dtypes (std::vector< data_type > types) |
| Set data types for columns to be read. More... | |
| json_reader_options_builder & | dtypes (std::map< std::string, data_type > types) |
| Set data types for columns to be read. More... | |
| json_reader_options_builder & | dtypes (std::map< std::string, schema_element > types) |
| Set data types for columns to be read. More... | |
| json_reader_options_builder & | dtypes (schema_element types) |
| Set data types for columns to be read. More... | |
| json_reader_options_builder & | compression (compression_type comp_type) |
| Set the compression type. More... | |
| json_reader_options_builder & | byte_range_offset (size_type offset) |
| Set number of bytes to skip from source start. More... | |
| json_reader_options_builder & | byte_range_size (size_type size) |
| Set number of bytes to read. More... | |
| json_reader_options_builder & | delimiter (char delimiter) |
| Set delimiter separating records in JSON lines. More... | |
| json_reader_options_builder & | lines (bool val) |
| Set whether to read the file as a json object per line. More... | |
| json_reader_options_builder & | mixed_types_as_string (bool val) |
| Set whether to parse mixed types as a string column. Also enables forcing to read a struct as string column using schema. More... | |
| json_reader_options_builder & | prune_columns (bool val) |
| Set whether to prune columns on read, selected based on the dtypes option. More... | |
| json_reader_options_builder & | experimental (bool val) |
| Set whether to enable experimental features. More... | |
| json_reader_options_builder & | dayfirst (bool val) |
| Set whether to parse dates as DD/MM versus MM/DD. More... | |
| json_reader_options_builder & | keep_quotes (bool val) |
| Set whether the reader should keep quotes of string values. More... | |
| json_reader_options_builder & | normalize_single_quotes (bool val) |
| Set whether the reader should normalize single quotes around strings. More... | |
| json_reader_options_builder & | normalize_whitespace (bool val) |
| Set whether the reader should normalize unquoted whitespace. More... | |
| json_reader_options_builder & | recovery_mode (json_recovery_mode_t val) |
| Specifies the JSON reader's behavior on invalid JSON lines. More... | |
| json_reader_options_builder & | strict_validation (bool val) |
| Set whether json validation should be strict or not. More... | |
| json_reader_options_builder & | numeric_leading_zeros (bool val) |
| Set Whether leading zeros are allowed in numeric values. Strict validation must be enabled for this to have any effect. More... | |
| json_reader_options_builder & | nonnumeric_numbers (bool val) |
| Set whether specific unquoted number values are valid JSON. The values are NaN, +INF, -INF, +Infinity, Infinity, and -Infinity. Strict validation must be enabled for this to have any effect. More... | |
| json_reader_options_builder & | unquoted_control_chars (bool val) |
| Set whether chars >= 0 and < 32 are allowed in a quoted string without some form of escaping. Strict validation must be enabled for this to have any effect. More... | |
| json_reader_options_builder & | na_values (std::vector< std::string > vals) |
| Sets additional values to recognize as null values. More... | |
| operator json_reader_options && () | |
| move json_reader_options member once it's built. | |
| json_reader_options && | build () |
| move json_reader_options member once it's built. More... | |
Builds settings to use for read_json().
Definition at line 587 of file io/json.hpp.
|
explicitdefault |
Default constructor.
This has been added since Cython requires a default constructor to create objects on stack.
|
inlineexplicit |
Constructor from source info.
| src | The source information used to read avro file |
Definition at line 603 of file io/json.hpp.
|
inline |
move json_reader_options member once it's built.
This has been added since Cython does not support overloading of conversion operators.
json_reader_options object r-value reference Definition at line 902 of file io/json.hpp.
|
inline |
Set number of bytes to skip from source start.
| offset | Number of bytes of offset |
Definition at line 671 of file io/json.hpp.
|
inline |
Set number of bytes to read.
| size | Number of bytes to read |
Definition at line 683 of file io/json.hpp.
|
inline |
Set the compression type.
| comp_type | The compression type used |
Definition at line 659 of file io/json.hpp.
|
inline |
Set whether to parse dates as DD/MM versus MM/DD.
| val | Boolean value to enable/disable day first parsing format |
Definition at line 763 of file io/json.hpp.
|
inline |
Set delimiter separating records in JSON lines.
| delimiter | Delimiter separating records in JSON lines |
Definition at line 695 of file io/json.hpp.
|
inline |
Set data types for columns to be read.
| types | Struct schema_element with Column name -> schema_element with map and order |
Definition at line 647 of file io/json.hpp.
|
inline |
Set data types for columns to be read.
| types | Column name -> dtype map |
Definition at line 623 of file io/json.hpp.
|
inline |
Set data types for columns to be read.
| types | Column name -> schema_element map |
Definition at line 635 of file io/json.hpp.
|
inline |
Set data types for columns to be read.
| types | Vector of dtypes |
Definition at line 611 of file io/json.hpp.
|
inline |
Set whether to enable experimental features.
When set to true, experimental features, such as the new column tree construction, utf-8 matching of field names will be enabled.
| val | Boolean value to enable/disable experimental features |
Definition at line 751 of file io/json.hpp.
|
inline |
Set whether the reader should keep quotes of string values.
| val | Boolean value to indicate whether the reader should keep quotes of string values |
Definition at line 776 of file io/json.hpp.
|
inline |
Set whether to read the file as a json object per line.
| val | Boolean value to enable/disable the option to read each line as a json object |
Definition at line 707 of file io/json.hpp.
|
inline |
Set whether to parse mixed types as a string column. Also enables forcing to read a struct as string column using schema.
| val | Boolean value to enable/disable parsing mixed types as a string column |
Definition at line 720 of file io/json.hpp.
|
inline |
Sets additional values to recognize as null values.
| vals | Vector of values to be considered to be null |
Definition at line 884 of file io/json.hpp.
|
inline |
Set whether specific unquoted number values are valid JSON. The values are NaN, +INF, -INF, +Infinity, Infinity, and -Infinity. Strict validation must be enabled for this to have any effect.
| cudf::logic_error | if strict_validation is not enabled before setting this option. |
| val | Boolean value to indicate if unquoted nonnumeric values are valid json or not. |
Definition at line 857 of file io/json.hpp.
|
inline |
Set whether the reader should normalize single quotes around strings.
| val | Boolean value to indicate whether the reader should normalize single quotes of strings |
Definition at line 789 of file io/json.hpp.
|
inline |
Set whether the reader should normalize unquoted whitespace.
| val | Boolean value to indicate whether the reader should normalize unquoted whitespace |
Definition at line 802 of file io/json.hpp.
|
inline |
Set Whether leading zeros are allowed in numeric values. Strict validation must be enabled for this to have any effect.
| cudf::logic_error | if strict_validation is not enabled before setting this option. |
| val | Boolean value to indicate whether leading zeros are allowed in numeric values |
Definition at line 841 of file io/json.hpp.
|
inline |
Set whether to prune columns on read, selected based on the dtypes option.
When set as true, if the reader options include dtypes, then the reader will only return those columns which are mentioned in dtypes. If false, then all columns are returned, independent of the dtypes setting.
| val | Boolean value to enable/disable column pruning |
Definition at line 736 of file io/json.hpp.
|
inline |
Specifies the JSON reader's behavior on invalid JSON lines.
| val | An enum value to indicate the JSON reader's behavior on invalid JSON lines. |
Definition at line 814 of file io/json.hpp.
|
inline |
Set whether json validation should be strict or not.
| val | Boolean value to indicate whether json validation should be strict or not. |
Definition at line 826 of file io/json.hpp.
|
inline |
Set whether chars >= 0 and < 32 are allowed in a quoted string without some form of escaping. Strict validation must be enabled for this to have any effect.
| cudf::logic_error | if strict_validation is not enabled before setting this option. |
| val | Boolean value to indicate if unquoted control chars are allowed or not. |
Definition at line 872 of file io/json.hpp.