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

Function HashConcatenation

cpp/src/arrow/util/hashing_test.cc:567–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567hash_t HashConcatenation(const ArrayVector& arrays, int64_t bits_offset = -1,
568 int64_t num_bits = -1) {
569 EXPECT_OK_AND_ASSIGN(auto concat, Concatenate(arrays));
570 EXPECT_EQ(concat->type()->id(), Type::BOOL);
571 if (bits_offset == -1 || num_bits == -1) {
572 return HashDataBitmap(*concat->data());
573 }
574 auto slice = concat->Slice(bits_offset, num_bits);
575 return HashDataBitmap(*slice->data());
576}
577
578TEST(BitmapHashTest, SmallInputs) {
579 for (bool start : {false, true}) {

Callers 1

TESTFunction · 0.85

Calls 5

HashDataBitmapFunction · 0.85
idMethod · 0.45
typeMethod · 0.45
dataMethod · 0.45
SliceMethod · 0.45

Tested by

no test coverage detected