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