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

Method Call

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

Source from the content-addressed store, hash-verified

286struct BooleanToNumber {
287 template <typename OutValue, typename Arg0Value>
288 static OutValue Call(KernelContext*, Arg0Value val, Status*) {
289 constexpr auto kOne = static_cast<OutValue>(1);
290 constexpr auto kZero = static_cast<OutValue>(0);
291 return val ? kOne : kZero;
292 }
293};
294
295template <typename O>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected