public static class HCatCreateDBDesc.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HCatCreateDBDesc |
build()
Builds the create database descriptor.
|
HCatCreateDBDesc.Builder |
comment(String value)
Comment.
|
HCatCreateDBDesc.Builder |
databaseProperties(Map<String,String> dbProps)
Database properties.
|
HCatCreateDBDesc.Builder |
ifNotExists(boolean ifNotExists)
If not exists.
|
HCatCreateDBDesc.Builder |
location(String value)
Location.
|
public HCatCreateDBDesc.Builder location(String value)
value
- the location of the database.public HCatCreateDBDesc.Builder comment(String value)
value
- comments.public HCatCreateDBDesc.Builder ifNotExists(boolean ifNotExists)
ifNotExists
- If set to true, hive will not throw exception, if a
database with the same name already exists.public HCatCreateDBDesc.Builder databaseProperties(Map<String,String> dbProps)
dbProps
- the database propertiespublic HCatCreateDBDesc build() throws HCatException
HCatException
Copyright © 2017 The Apache Software Foundation. All rights reserved.