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

Method Make

cpp/src/arrow/sparse_tensor.h:226–237  ·  view source on GitHub ↗

\brief Make a subclass of SparseCSXIndex from raw properties

Source from the content-addressed store, hash-verified

224
225 /// \brief Make a subclass of SparseCSXIndex from raw properties
226 static Result<std::shared_ptr<SparseIndexType>> Make(
227 const std::shared_ptr<DataType>& indptr_type,
228 const std::shared_ptr<DataType>& indices_type,
229 const std::vector<int64_t>& indptr_shape, const std::vector<int64_t>& indices_shape,
230 std::shared_ptr<Buffer> indptr_data, std::shared_ptr<Buffer> indices_data) {
231 ARROW_RETURN_NOT_OK(ValidateSparseCSXIndex(indptr_type, indices_type, indptr_shape,
232 indices_shape,
233 SparseIndexType::kTypeName));
234 return std::make_shared<SparseIndexType>(
235 std::make_shared<Tensor>(indptr_type, indptr_data, indptr_shape),
236 std::make_shared<Tensor>(indices_type, indices_data, indices_shape));
237 }
238
239 /// \brief Make a subclass of SparseCSXIndex from raw properties
240 static Result<std::shared_ptr<SparseIndexType>> Make(

Callers

nothing calls this directly

Calls 2

ValidateSparseCSXIndexFunction · 0.85
MakeFunction · 0.70

Tested by

no test coverage detected