Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
CreateDbStmt (String dbName) | |
CreateDbStmt (String dbName, String comment, HdfsUri location, boolean ifNotExists) | |
String | getComment () |
String | getDb () |
boolean | getIfNotExists () |
HdfsUri | getLocation () |
String | toSql () |
TCreateDbParams | toThrift () |
void | analyze (Analyzer analyzer) throws AnalysisException |
void | setIsExplain () |
boolean | isExplain () |
Protected Attributes | |
boolean | isExplain_ = false |
Private Attributes | |
final String | dbName_ |
final HdfsUri | location_ |
final String | comment_ |
final boolean | ifNotExists_ |
Represents a CREATE DATABASE statement
Definition at line 28 of file CreateDbStmt.java.
|
inline |
Creates a database with the given name.
Definition at line 37 of file CreateDbStmt.java.
|
inline |
Creates a database with the given name, comment, and HDFS table storage location. New tables created in the database inherit the location property for their default storage location. Create database will throw an error if the database already exists unless the ifNotExists is true.
Definition at line 47 of file CreateDbStmt.java.
|
inline |
Perform semantic analysis of node and all of its children. Throws exception if any errors found.
analyzer |
AnalysisException |
Implements com.cloudera.impala.analysis.ParseNode.
Definition at line 80 of file CreateDbStmt.java.
References com.cloudera.impala.authorization.Privilege.ALL, com.cloudera.impala.authorization.Privilege.CREATE, com.cloudera.impala.analysis.Analyzer.DB_ALREADY_EXISTS_ERROR_MSG, com.cloudera.impala.analysis.CreateDbStmt.dbName_, com.cloudera.impala.analysis.CreateDbStmt.getDb(), com.cloudera.impala.analysis.CreateDbStmt.ifNotExists_, and com.cloudera.impala.analysis.CreateDbStmt.location_.
|
inline |
Definition at line 55 of file CreateDbStmt.java.
References com.cloudera.impala.analysis.CreateDbStmt.comment_.
Referenced by com.cloudera.impala.analysis.CreateDbStmt.toThrift().
|
inline |
Definition at line 56 of file CreateDbStmt.java.
References com.cloudera.impala.analysis.CreateDbStmt.dbName_.
Referenced by com.cloudera.impala.analysis.CreateDbStmt.analyze(), and com.cloudera.impala.analysis.CreateDbStmt.toThrift().
|
inline |
Definition at line 57 of file CreateDbStmt.java.
References com.cloudera.impala.analysis.CreateDbStmt.ifNotExists_.
Referenced by com.cloudera.impala.analysis.CreateDbStmt.toThrift().
|
inline |
Definition at line 58 of file CreateDbStmt.java.
References com.cloudera.impala.analysis.CreateDbStmt.location_.
|
inlineinherited |
Definition at line 43 of file StatementBase.java.
References com.cloudera.impala.analysis.StatementBase.isExplain_.
|
inlineinherited |
Definition at line 42 of file StatementBase.java.
References com.cloudera.impala.analysis.StatementBase.isExplain_.
|
inline |
Implements com.cloudera.impala.analysis.ParseNode.
Definition at line 61 of file CreateDbStmt.java.
References com.cloudera.impala.analysis.CreateDbStmt.comment_, com.cloudera.impala.analysis.CreateDbStmt.dbName_, com.cloudera.impala.analysis.CreateDbStmt.ifNotExists_, and com.cloudera.impala.analysis.CreateDbStmt.location_.
|
inline |
|
private |
Definition at line 31 of file CreateDbStmt.java.
Referenced by com.cloudera.impala.analysis.CreateDbStmt.getComment(), and com.cloudera.impala.analysis.CreateDbStmt.toSql().
|
private |
Definition at line 29 of file CreateDbStmt.java.
Referenced by com.cloudera.impala.analysis.CreateDbStmt.analyze(), com.cloudera.impala.analysis.CreateDbStmt.getDb(), and com.cloudera.impala.analysis.CreateDbStmt.toSql().
|
private |
Definition at line 32 of file CreateDbStmt.java.
Referenced by com.cloudera.impala.analysis.CreateDbStmt.analyze(), com.cloudera.impala.analysis.CreateDbStmt.getIfNotExists(), and com.cloudera.impala.analysis.CreateDbStmt.toSql().
|
protectedinherited |
|
private |