public class CatalogBuilder extends Object
| Constructor and Description |
|---|
CatalogBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Catalog |
build() |
Catalog |
create(IMetaStoreClient client)
Build the catalog object and create it in the metastore.
|
CatalogBuilder |
setDescription(String description) |
CatalogBuilder |
setLocation(String location) |
CatalogBuilder |
setName(String name) |
public CatalogBuilder setName(String name)
public CatalogBuilder setDescription(String description)
public CatalogBuilder setLocation(String location)
public Catalog build() throws MetaException
MetaExceptionpublic Catalog create(IMetaStoreClient client) throws org.apache.thrift.TException
client - metastore clientorg.apache.thrift.TException - thrown from the clientCopyright © 2024 The Apache Software Foundation. All rights reserved.