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

Method ComparePrimitive

cpp/src/arrow/compare.cc:523–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521 protected:
522 template <typename TypeClass, typename CType = typename TypeClass::c_type>
523 Status ComparePrimitive(const TypeClass&) {
524 const CType* left_values = left_.GetValues<CType>(1);
525 const CType* right_values = right_.GetValues<CType>(1);
526 VisitValidRuns([&](int64_t i, int64_t length) {
527 return memcmp(left_values + left_start_idx_ + i,
528 right_values + right_start_idx_ + i, length * sizeof(CType)) == 0;
529 });
530 return Status::OK();
531 }
532
533 template <typename TypeClass>
534 Status CompareFloating(const TypeClass&) {

Callers

nothing calls this directly

Calls 1

OKFunction · 0.70

Tested by

no test coverage detected