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

Method Call

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

Source from the content-addressed store, hash-verified

163
164 template <typename T, typename Arg0, typename Arg1>
165 T Call(KernelContext*, Arg0 arg0, Arg1 arg1, Status*) const {
166 year_month_day from_ymd(
167 floor<days>(localizer_.template ConvertTimePoint<Duration>(arg0)));
168 year_month_day to_ymd(
169 floor<days>(localizer_.template ConvertTimePoint<Duration>(arg1)));
170 int64_t from_quarters = GetQuarters(from_ymd);
171 int64_t to_quarters = GetQuarters(to_ymd);
172 return static_cast<T>(to_quarters - from_quarters);
173 }
174
175 Localizer localizer_;
176};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected