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

Function SetData

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

Protected method for constructors

Source from the content-addressed store, hash-verified

267
268 /// Protected method for constructors
269 void SetData(const std::shared_ptr<ArrayData>& data) {
270 if (data->buffers.size() > 0) {
271 null_bitmap_data_ = data->GetValuesSafe<uint8_t>(0, /*offset=*/0);
272 } else {
273 null_bitmap_data_ = NULLPTR;
274 }
275 data_ = data;
276 }
277
278 /// Implementation of ToTensor with nulls as undefined.
279 virtual Result<std::shared_ptr<Tensor>> ToTensorWithNulls() const;

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