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

Method MakeArray

cpp/src/arrow/array/array_binary_test.cc:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 void MakeArray() {
96 length_ = static_cast<int64_t>(offsets_.size()) - 1;
97 value_buf_ = Buffer::Wrap(chars_);
98 offsets_buf_ = Buffer::Wrap(offsets_);
99 ASSERT_OK_AND_ASSIGN(null_bitmap_, internal::BytesToBits(valid_bytes_));
100 null_count_ = CountNulls(valid_bytes_);
101
102 strings_ = std::make_shared<ArrayType>(length_, offsets_buf_, value_buf_,
103 null_bitmap_, null_count_);
104 }
105
106 void TestArrayBasics() {
107 ASSERT_EQ(length_, strings_->length());

Callers

nothing calls this directly

Calls 5

WrapFunction · 0.85
BytesToBitsFunction · 0.85
CountNullsFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected