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

Method Decode

cpp/src/arrow/csv/converter.cc:254–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 using ValueDecoder::ValueDecoder;
253
254 Status Decode(const uint8_t* data, uint32_t size, bool quoted, value_type* out) {
255 // XXX should quoted values be allowed at all?
256 if (trie_cache_->false_trie.Find(
257 std::string_view(reinterpret_cast<const char*>(data), size)) >= 0) {
258 *out = false;
259 return Status::OK();
260 }
261 if (ARROW_PREDICT_TRUE(trie_cache_->true_trie.Find(std::string_view(
262 reinterpret_cast<const char*>(data), size)) >= 0)) {
263 *out = true;
264 return Status::OK();
265 }
266 return GenericConversionError(type_, data, size);
267 }
268};
269
270//

Callers

nothing calls this directly

Calls 3

GenericConversionErrorFunction · 0.70
OKFunction · 0.50
FindMethod · 0.45

Tested by

no test coverage detected