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

Method Call

cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc:309–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307struct ParseString {
308 template <typename OutValue, typename Arg0Value>
309 OutValue Call(KernelContext* ctx, Arg0Value val, Status* st) const {
310 OutValue result = OutValue(0);
311 if (ARROW_PREDICT_FALSE(!ParseValue<OutType>(val.data(), val.size(), &result))) {
312 *st = Status::Invalid("Failed to parse string: '", val, "' as a scalar of type ",
313 TypeTraits<OutType>::type_singleton()->ToString());
314 }
315 return result;
316 }
317};
318
319template <typename O, typename I>

Callers

nothing calls this directly

Calls 5

type_singletonFunction · 0.70
InvalidFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected