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

Method Decode

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

Source from the content-addressed store, hash-verified

452 parsers_(GetParsers(options_)) {}
453
454 Status Decode(const uint8_t* data, uint32_t size, bool quoted, value_type* out) {
455 bool zone_offset_present = false;
456 for (const auto& parser : parsers_) {
457 if (parser->operator()(reinterpret_cast<const char*>(data), size, unit_, out,
458 &zone_offset_present) &&
459 zone_offset_present == expect_timezone_) {
460 return Status::OK();
461 }
462 }
463 return GenericConversionError(type_, data, size);
464 }
465
466 protected:
467 using ParserVector = std::vector<const TimestampParser*>;

Callers

nothing calls this directly

Calls 3

GenericConversionErrorFunction · 0.70
OKFunction · 0.50
operator()Method · 0.45

Tested by

no test coverage detected