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

Function SetData

cpp/src/arrow/array/array_base.h:257–264  ·  view source on GitHub ↗

Protected method for constructors

Source from the content-addressed store, hash-verified

255
256 /// Protected method for constructors
257 void SetData(const std::shared_ptr<ArrayData>& data) {
258 if (data->buffers.size() > 0) {
259 null_bitmap_data_ = data->GetValuesSafe<uint8_t>(0, /*offset=*/0);
260 } else {
261 null_bitmap_data_ = NULLPTR;
262 }
263 data_ = data;
264 }
265
266 private:
267 ARROW_DISALLOW_COPY_AND_ASSIGN(Array);

Callers 15

NumericArrayMethod · 0.70
DictionaryArrayMethod · 0.70
BinaryArrayMethod · 0.70
LargeBinaryArrayMethod · 0.70
StringArrayMethod · 0.70
LargeStringArrayMethod · 0.70
BinaryViewArrayMethod · 0.70
StringViewArrayMethod · 0.70
FixedSizeBinaryArrayMethod · 0.70
SetDataMethod · 0.70
NullArrayMethod · 0.70
PrimitiveArrayFunction · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected