public class CatalogBuilder extends Object
| Constructor and Description |
|---|
CatalogBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hive.metastore.api.Catalog |
build() |
org.apache.hadoop.hive.metastore.api.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 org.apache.hadoop.hive.metastore.api.Catalog build()
throws org.apache.hadoop.hive.metastore.api.MetaException
org.apache.hadoop.hive.metastore.api.MetaExceptionpublic org.apache.hadoop.hive.metastore.api.Catalog create(IMetaStoreClient client) throws org.apache.thrift.TException
client - metastore clientorg.apache.thrift.TException - thrown from the clientCopyright © 2019 The Apache Software Foundation. All Rights Reserved.