Returns the number of attributes in the schema. **/
| 538 | |
| 539 | /** Returns the number of attributes in the schema. **/ |
| 540 | unsigned attribute_num() const override { |
| 541 | auto& ctx = ctx_.get(); |
| 542 | unsigned num; |
| 543 | ctx.handle_error(tiledb_array_schema_get_attribute_num( |
| 544 | ctx.ptr().get(), schema_.get(), &num)); |
| 545 | return num; |
| 546 | } |
| 547 | |
| 548 | /** |
| 549 | * Get a copy of an Attribute in the schema by index. |