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()
HiveCreateTablegetTableInfo in interface HiveCreateTablepublic boolean isExternal()
HiveCreateTableisExternal in interface HiveCreateTabletrue if the target table is external, or false if notpublic boolean isSkipPresentTable()
HiveCreateTableisSkipPresentTable in interface HiveCreateTabletrue if skip creating present table, or false if notpublic String getDatabaseName()
HiveCreateTablegetDatabaseName in interface HiveCreateTablenull to create table on the context databasepublic String getLocation()
HiveCreateTablegetLocation in interface HiveCreateTablenull 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.