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

Method SetData

cpp/src/arrow/array/array_primitive.h:137–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 NumericArray() : values_(NULLPTR) {}
136
137 void SetData(const std::shared_ptr<ArrayData>& data) {
138 this->PrimitiveArray::SetData(data);
139 values_ = raw_values_
140 ? (reinterpret_cast<const value_type*>(raw_values_) + data_->offset)
141 : NULLPTR;
142 }
143
144 /// \brief Return a one dimensional Tensor.
145 Result<std::shared_ptr<Tensor>> ToTensorWithNulls() const override {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected