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

Method Call

cpp/src/arrow/compute/kernels/scalar_temporal_binary.cc:212–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210
211 template <typename T, typename Arg0, typename Arg1>
212 T Call(KernelContext*, Arg0 arg0, Arg1 arg1, Status*) const {
213 auto from =
214 ToWeekStart(floor<days>(localizer_.template ConvertTimePoint<Duration>(arg0)));
215 auto to =
216 ToWeekStart(floor<days>(localizer_.template ConvertTimePoint<Duration>(arg1)));
217 return (to - from).count() / 7;
218 }
219
220 uint32_t week_start_;
221 Localizer localizer_;

Callers

nothing calls this directly

Calls 1

countMethod · 0.45

Tested by

no test coverage detected