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

Function BuildBooleanArray

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

Source from the content-addressed store, hash-verified

498}
499
500std::shared_ptr<BooleanArray> BuildBooleanArray(int len, bool start) {
501 // This could be memoized in the future to speed up tests.
502 BooleanBuilder builder;
503 for (int i = 0; i < len; ++i) {
504 EXPECT_TRUE(builder.Append(((i % 2 != 0) ^ start) == 1).ok());
505 }
506 std::shared_ptr<BooleanArray> array;
507 EXPECT_TRUE(builder.Finish(&array).ok());
508 return array;
509}
510
511hash_t HashConcatenation(const ArrayVector& arrays, int64_t bits_offset = -1,
512 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