public class SimpleCreateTable extends Object implements HiveCreateTable
CREATE TABLE
statement in Hive.Constructor and Description |
---|
SimpleCreateTable(TableInfo tableInfo)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getDatabaseName()
Returns the target database name.
|
String |
getLocation()
Returns the target table location.
|
TableInfo |
getTableInfo()
Returns the target table information.
|
boolean |
isExternal()
Returns whether the target table is external or not.
|
boolean |
isSkipPresentTable()
Returns whether the target table should be created only if it does not exist.
|
SimpleCreateTable |
withDatabaseName(String value)
Sets the target database name.
|
SimpleCreateTable |
withExternal(boolean value)
Sets whether the target table is external or not.
|
SimpleCreateTable |
withLocation(String value)
Sets the target table location.
|
SimpleCreateTable |
withSkipPresentTable(boolean value)
Sets whether the target table should be created only if it does not exist.
|
public SimpleCreateTable(TableInfo tableInfo)
tableInfo
- the target tablepublic TableInfo getTableInfo()
HiveCreateTable
getTableInfo
in interface HiveCreateTable
public boolean isExternal()
HiveCreateTable
isExternal
in interface HiveCreateTable
true
if the target table is external, or false
if notpublic boolean isSkipPresentTable()
HiveCreateTable
isSkipPresentTable
in interface HiveCreateTable
true
if skip creating present table, or false
if notpublic String getDatabaseName()
HiveCreateTable
getDatabaseName
in interface HiveCreateTable
null
to create table on the context databasepublic String getLocation()
HiveCreateTable
getLocation
in interface HiveCreateTable
null
to create table onto the default locationpublic SimpleCreateTable withExternal(boolean value)
value
- the valuepublic SimpleCreateTable withSkipPresentTable(boolean value)
value
- the valuepublic SimpleCreateTable withDatabaseName(String value)
value
- the valuepublic SimpleCreateTable withLocation(String value)
value
- the valueCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.