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

Method Visit

cpp/src/arrow/scalar.cc:1022–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020struct ScalarParseImpl {
1021 template <typename T, typename = internal::enable_if_parseable<T>>
1022 Status Visit(const T& t) {
1023 typename internal::StringConverter<T>::value_type value;
1024 if (!internal::ParseValue(t, s_.data(), s_.size(), &value)) {
1025 return Status::Invalid("error parsing '", s_, "' as scalar of type ", t);
1026 }
1027 return Finish(value);
1028 }
1029
1030 Status Visit(const BinaryType&) { return FinishWithBuffer(); }
1031

Callers

nothing calls this directly

Calls 6

ParseValueFunction · 0.85
InvalidFunction · 0.70
NotImplementedFunction · 0.70
FinishFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected