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

Function OptionalBitmapEquals

cpp/src/arrow/util/bitmap_ops.cc:312–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312bool OptionalBitmapEquals(const uint8_t* left, int64_t left_offset, const uint8_t* right,
313 int64_t right_offset, int64_t length) {
314 if (left == nullptr && right == nullptr) {
315 return true;
316 } else if (left != nullptr && right != nullptr) {
317 return BitmapEquals(left, left_offset, right, right_offset, length);
318 } else if (left != nullptr) {
319 return CountSetBits(left, left_offset, length) == length;
320 } else {
321 return CountSetBits(right, right_offset, length) == length;
322 }
323}
324
325bool OptionalBitmapEquals(const std::shared_ptr<Buffer>& left, int64_t left_offset,
326 const std::shared_ptr<Buffer>& right, int64_t right_offset,

Callers 1

CompareMethod · 0.85

Calls 3

BitmapEqualsFunction · 0.70
CountSetBitsFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected