20 #include <cudf/utilities/export.hpp>
23 namespace CUDF_EXPORT
cudf {
36 bool allow_single_quotes =
false;
39 bool strip_quotes_from_single_strings =
true;
42 bool missing_fields_as_nulls =
false;
58 return allow_single_quotes;
87 return strip_quotes_from_single_strings;
113 return missing_fields_as_nulls;
123 allow_single_quotes = _allow_single_quotes;
133 strip_quotes_from_single_strings = _strip_quotes_from_single_strings;
143 missing_fields_as_nulls = _missing_fields_as_nulls;
Settings for get_json_object().
CUDF_HOST_DEVICE bool get_allow_single_quotes() const
Returns true/false depending on whether single-quotes for representing strings are allowed.
void set_strip_quotes_from_single_strings(bool _strip_quotes_from_single_strings)
Set whether individually returned string values have their quotes stripped.
void set_allow_single_quotes(bool _allow_single_quotes)
Set whether single-quotes for strings are allowed.
get_json_object_options()=default
Default constructor.
void set_missing_fields_as_nulls(bool _missing_fields_as_nulls)
Set whether missing fields are interpreted as null.
CUDF_HOST_DEVICE bool get_strip_quotes_from_single_strings() const
Returns true/false depending on whether individually returned string values have their quotes strippe...
CUDF_HOST_DEVICE bool get_missing_fields_as_nulls() const
Whether a field not contained by an object is to be interpreted as null.
An owning class to represent a string in device memory.
Given a column-view of strings type, an instance of this class provides a wrapper on this compound co...
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
std::unique_ptr< cudf::column > get_json_object(cudf::strings_column_view const &col, cudf::string_scalar const &json_path, get_json_object_options options=get_json_object_options{}, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Apply a JSONPath string to all rows in an input strings column.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
Class definition for cudf::strings_column_view.
#define CUDF_HOST_DEVICE
Indicates that the function or method is usable on host and device.