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

Method InternString

cpp/src/arrow/json/parser.cc:177–179  ·  view source on GitHub ↗

Finds or allocates a unique string and returns a persistent `std::string_view`

Source from the content-addressed store, hash-verified

175
176 // Finds or allocates a unique string and returns a persistent `std::string_view`
177 std::string_view InternString(std::string_view str) {
178 return *string_cache_.emplace(str).first;
179 }
180
181 private:
182 MemoryPool* pool_;

Callers 1

AddFieldMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected