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

Method Make

cpp/src/arrow/sparse_tensor.h:230–241  ·  view source on GitHub ↗

\brief Make a subclass of SparseCSXIndex from raw properties

Source from the content-addressed store, hash-verified

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