Skip to content

Commit

Permalink
Backport to branch(3.6) : Add API doc for admin.repairTable method …
Browse files Browse the repository at this point in the history
…for v3.X (#1350)

Co-authored-by: Vincent Guilpain <[email protected]>
  • Loading branch information
brfrn169 and Torch3333 authored Dec 7, 2023
1 parent 4e1f1c0 commit f34361a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/api-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,19 @@ You can get table metadata as follows:
// Get the table metadata for "ns.tbl".
TableMetadata tableMetadata = admin.getTableMetadata("ns", "tbl");
```
### Repair a table

You can repair the table metadata of an existing table as follows:

```java
// Repair the table "ns.tbl" with options.
TableMetadata tableMetadata =
TableMetadata.newBuilder()
...
.build();
Map<String, String> options = ...;
admin.repairTable("ns", "tbl", tableMetadata, options);
```

### Specify operations for the Coordinator table

Expand Down
14 changes: 14 additions & 0 deletions docs/storage-abstraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,20 @@ You can get table metadata as follows:
TableMetadata tableMetadata = admin.getTableMetadata("ns", "tbl");
```

### Repair a table

You can repair the table metadata of an existing table as follows:

```java
// Repair the table "ns.tbl" with options.
TableMetadata tableMetadata =
TableMetadata.newBuilder()
...
.build();
Map<String, String> options = ...;
admin.repairTable("ns", "tbl", tableMetadata, options);
```

### Implement CRUD operations

The following sections describe CRUD operations.
Expand Down

0 comments on commit f34361a

Please sign in to comment.