Skip to content

Commit

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

Co-authored-by: Vincent Guilpain <[email protected]>
  • Loading branch information
brfrn169 and Torch3333 authored Dec 7, 2023
1 parent 901ba47 commit 0a6e325
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 @@ -241,6 +241,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 @@ -388,6 +388,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 0a6e325

Please sign in to comment.