MCPcopy Create free account
hub / github.com/apache/arrow / SetString

Method SetString

cpp/src/arrow/json/object_writer.cc:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 Impl() : root_(rj::kObjectType) {}
34
35 void SetString(std::string_view key, std::string_view value) {
36 rj::Document::AllocatorType& allocator = document_.GetAllocator();
37
38 rj::Value str_key(key.data(), allocator);
39 rj::Value str_value(value.data(), allocator);
40
41 root_.AddMember(str_key, str_value, allocator);
42 }
43
44 void SetBool(std::string_view key, bool value) {
45 rj::Document::AllocatorType& allocator = document_.GetAllocator();

Callers

nothing calls this directly

Calls 2

GetAllocatorMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected