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

Method CompareFloating

cpp/src/arrow/compare.cc:534–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532
533 template <typename TypeClass>
534 Status CompareFloating(const TypeClass&) {
535 using CType = typename TypeClass::c_type;
536 const CType* left_values = left_.GetValues<CType>(1);
537 const CType* right_values = right_.GetValues<CType>(1);
538
539 auto visitor = [&](auto&& compare_func) {
540 VisitValues([&](int64_t i) {
541 const CType x = left_values[i + left_start_idx_];
542 const CType y = right_values[i + right_start_idx_];
543 return compare_func(x, y);
544 });
545 };
546 VisitFloatingEquality<CType>(options_, std::move(visitor));
547 return Status::OK();
548 }
549
550 template <typename TypeClass>
551 Status CompareBinary(const TypeClass&) {

Callers

nothing calls this directly

Calls 1

OKFunction · 0.70

Tested by

no test coverage detected