Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.analysis.CreateDbStmt Class Reference
Inheritance diagram for com.cloudera.impala.analysis.CreateDbStmt:
Collaboration diagram for com.cloudera.impala.analysis.CreateDbStmt:

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_
 

Detailed Description

Represents a CREATE DATABASE statement

Definition at line 28 of file CreateDbStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.CreateDbStmt.CreateDbStmt ( String  dbName)
inline

Creates a database with the given name.

Definition at line 37 of file CreateDbStmt.java.

com.cloudera.impala.analysis.CreateDbStmt.CreateDbStmt ( String  dbName,
String  comment,
HdfsUri  location,
boolean  ifNotExists 
)
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.

Member Function Documentation

void com.cloudera.impala.analysis.CreateDbStmt.analyze ( Analyzer  analyzer) throws AnalysisException
inline
String com.cloudera.impala.analysis.CreateDbStmt.getComment ( )
inline
String com.cloudera.impala.analysis.CreateDbStmt.getDb ( )
inline
boolean com.cloudera.impala.analysis.CreateDbStmt.getIfNotExists ( )
inline
HdfsUri com.cloudera.impala.analysis.CreateDbStmt.getLocation ( )
inline
boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited
String com.cloudera.impala.analysis.CreateDbStmt.toSql ( )
inline

Member Data Documentation

final String com.cloudera.impala.analysis.CreateDbStmt.comment_
private
final String com.cloudera.impala.analysis.CreateDbStmt.dbName_
private
final boolean com.cloudera.impala.analysis.CreateDbStmt.ifNotExists_
private

The documentation for this class was generated from the following file: