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

Function BuildBooleanArray

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

Source from the content-addressed store, hash-verified

554}
555
556std::shared_ptr<BooleanArray> BuildBooleanArray(int len, bool start) {
557 // This could be memoized in the future to speed up tests.
558 BooleanBuilder builder;
559 for (int i = 0; i < len; ++i) {
560 EXPECT_TRUE(builder.Append(((i % 2 != 0) ^ start) == 1).ok());
561 }
562 std::shared_ptr<BooleanArray> array;
563 EXPECT_TRUE(builder.Finish(&array).ok());
564 return array;
565}
566
567hash_t HashConcatenation(const ArrayVector& arrays, int64_t bits_offset = -1,
568 int64_t num_bits = -1) {

Callers 1

TESTFunction · 0.85

Calls 3

okMethod · 0.45
AppendMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected