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

Method Call

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

Source from the content-addressed store, hash-verified

182
183 template <typename T, typename Arg0, typename Arg1>
184 T Call(KernelContext*, Arg0 arg0, Arg1 arg1, Status*) const {
185 year_month_day from(
186 floor<days>(localizer_.template ConvertTimePoint<Duration>(arg0)));
187 year_month_day to(floor<days>(localizer_.template ConvertTimePoint<Duration>(arg1)));
188 return static_cast<T>((to.year() / to.month() - from.year() / from.month()).count());
189 }
190
191 Localizer localizer_;
192};

Callers

nothing calls this directly

Calls 1

countMethod · 0.45

Tested by

no test coverage detected