-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc0f01a
commit c074790
Showing
8 changed files
with
115 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# MetastoreCli | ||
|
||
`MetastoreCli` is used by [UnityCatalogCli](UnityCatalogCli.md) to [handle `metastore` sub-commands](#handle). | ||
|
||
``` console | ||
❯ ./bin/uc metastore --help | ||
Please provide a valid sub-command for metastore. | ||
Valid sub-commands for metastore are: get | ||
For detailed help on metastore sub-commands, use bin/uc metastore <sub-command> --help | ||
``` | ||
|
||
## Handle Command Line { #handle } | ||
|
||
``` java | ||
void handle( | ||
CommandLine cmd, | ||
ApiClient apiClient) | ||
``` | ||
|
||
`handle` handles the given `cmd` that can currently by `get` only. | ||
|
||
`handle` creates a `MetastoresApi` (with the given [ApiClient](../client/ApiClient.md)). | ||
|
||
Subcommand | Handler | API Handlers | ||
-|-|- | ||
`get` | | `MetastoresApi` | ||
|
||
--- | ||
|
||
`handle` is used when: | ||
|
||
* `UnityCatalogCli` is [launched on command line](UnityCatalogCli.md#main) with `metastore` command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# MetastoreService | ||
|
||
`MetastoreService` is a Unity Catalog API service that [UnityCatalogServer](UnityCatalogServer.md) registers to handle HTTP requests to the base `/api/2.1/unity-catalog/` URL. | ||
|
||
Method | URL | Handler | Params | ||
-|-|-|- | ||
GET | `/metastore_summary` | [getMetastoreSummary](#getMetastoreSummary) | | ||
|
||
```console | ||
$ http http://localhost:8081/api/2.1/unity-catalog/metastore_summary | jq '.metastore_id' | ||
"92418bf6-e62c-4d4c-bb5d-e5eda5c82688" | ||
``` | ||
|
||
## MetastoreRepository { #METASTORE_REPOSITORY } | ||
|
||
`MetastoreService` requests the system-wide [MetastoreRepository](../persistent-storage/MetastoreRepository.md) when created. | ||
|
||
This `MetastoreRepository` is used to [getMetastoreSummary](../persistent-storage/MetastoreRepository.md#getMetastoreSummary) to handle `GET /metastore_summary` requests. | ||
|
||
## Get Metastore Summary { #getMetastoreSummary } | ||
|
||
```java | ||
HttpResponse getMetastoreSummary() | ||
``` | ||
|
||
`getMetastoreSummary` requests the system-wide [MetastoreRepository](#METASTORE_REPOSITORY) instance for the [metastore summary](../persistent-storage/MetastoreRepository.md#getMetastoreSummary). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# URLTranscoderVerticle | ||
|
||
`URLTranscoderVerticle` is...FIXME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters