\brief Make a subclass of SparseCSXIndex from raw properties
| 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( |
nothing calls this directly
no test coverage detected