public static class HCatCreateDBDesc.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
HCatCreateDBDesc |
build()
Builds the create database descriptor.
|
HCatCreateDBDesc.Builder |
comment(java.lang.String value)
Comment.
|
HCatCreateDBDesc.Builder |
databaseProperties(java.util.Map<java.lang.String,java.lang.String> dbProps)
Database properties.
|
HCatCreateDBDesc.Builder |
ifNotExists(boolean ifNotExists)
If not exists.
|
HCatCreateDBDesc.Builder |
location(java.lang.String value)
Location.
|
public HCatCreateDBDesc.Builder location(java.lang.String value)
value
- the location of the database.public HCatCreateDBDesc.Builder comment(java.lang.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(java.util.Map<java.lang.String,java.lang.String> dbProps)
dbProps
- the database propertiespublic HCatCreateDBDesc build() throws HCatException
HCatException
Copyright © 2012 The Apache Software Foundation