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;
CUDF_HOST_DEVICE bool get_allow_single_quotes() const
根据是否允许使用单引号表示字符串来返回 true/false。
void set_strip_quotes_from_single_strings(bool _strip_quotes_from_single_strings)
设置返回的单个字符串值是否去除引号。
void set_allow_single_quotes(bool _allow_single_quotes)
设置是否允许使用单引号表示字符串。
get_json_object_options()=default
默认构造函数。
void set_missing_fields_as_nulls(bool _missing_fields_as_nulls)
设置缺失字段是否解释为 null。
CUDF_HOST_DEVICE bool get_strip_quotes_from_single_strings() const
根据返回的单个字符串值是否去除引号来返回 true/false...
CUDF_HOST_DEVICE bool get_missing_fields_as_nulls() const
对象中不包含的字段是否解释为 null。
给定一个字符串类型的列视图,此类的实例为此复合列提供了一个包装器...
rmm::cuda_stream_view const get_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())
对输入字符串列中的所有行应用 JSONPath 字符串。
rmm::device_async_resource_ref get_current_device_resource_ref()
获取当前的设备内存资源引用。
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
cudf::strings_column_view 的类定义。
#define CUDF_HOST_DEVICE
表示函数或方法可在主机和设备上使用。