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

Public Member Functions

 CreateTableDataSrcStmt (TableName tableName, List< ColumnDef > columnDefs, String dataSourceName, String initString, String comment, boolean ifNotExists)
 
void analyze (Analyzer analyzer) throws AnalysisException
 
CreateTableStmt clone ()
 
String getTbl ()
 
TableName getTblName ()
 
List< ColumnDefgetColumnDefs ()
 
List< ColumnDefgetPartitionColumnDefs ()
 
String getComment ()
 
boolean isExternal ()
 
boolean getIfNotExists ()
 
HdfsUri getLocation ()
 
void setLocation (HdfsUri location)
 
THdfsFileFormat getFileFormat ()
 
RowFormat getRowFormat ()
 
Map< String, String > getTblProperties ()
 
Map< String, String > getSerdeProperties ()
 
String getOwner ()
 
String getDb ()
 
String toSql ()
 
TCreateTableParams toThrift ()
 
void setIsExplain ()
 
boolean isExplain ()
 

Static Public Member Functions

static void unescapeProperties (Map< String, String > propertyMap)
 

Protected Attributes

boolean isExplain_ = false
 

Static Private Member Functions

static Map< String, String > createInitialTableProperties (String dataSourceName, String initString)
 

Detailed Description

Represents a CREATE TABLE statement for external data sources. Such tables reference an external data source (created with a CREATE DATA SOURCE statement) and the properties of that source are stored in the table properties because the metastore does not store the data sources themselves.

Definition at line 44 of file CreateTableDataSrcStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.CreateTableDataSrcStmt.CreateTableDataSrcStmt ( TableName  tableName,
List< ColumnDef columnDefs,
String  dataSourceName,
String  initString,
String  comment,
boolean  ifNotExists 
)
inline

Member Function Documentation

void com.cloudera.impala.analysis.CreateTableDataSrcStmt.analyze ( Analyzer  analyzer) throws AnalysisException
inline

Perform semantic analysis of node and all of its children. Throws exception if any errors found.

Parameters
analyzer
Exceptions
AnalysisException

Implements com.cloudera.impala.analysis.ParseNode.

Definition at line 68 of file CreateTableDataSrcStmt.java.

References com.cloudera.impala.authorization.Privilege.ALL, com.cloudera.impala.analysis.CreateTableStmt.getColumnDefs(), com.cloudera.impala.analysis.CreateTableStmt.getTblProperties(), and com.cloudera.impala.catalog.DataSourceTable.isSupportedColumnType().

CreateTableStmt com.cloudera.impala.analysis.CreateTableStmt.clone ( )
inlineinherited
static Map<String, String> com.cloudera.impala.analysis.CreateTableDataSrcStmt.createInitialTableProperties ( String  dataSourceName,
String  initString 
)
inlinestaticprivate

Creates the initial map of table properties containing the name of the data source and the table init string.

Definition at line 58 of file CreateTableDataSrcStmt.java.

Referenced by com.cloudera.impala.analysis.CreateTableDataSrcStmt.CreateTableDataSrcStmt().

String com.cloudera.impala.analysis.CreateTableStmt.getComment ( )
inlineinherited
String com.cloudera.impala.analysis.CreateTableStmt.getDb ( )
inlineinherited
String com.cloudera.impala.analysis.CreateTableStmt.getOwner ( )
inlineinherited

Can only be called after analysis, returns the owner of this table (the user from the current session).

Definition at line 146 of file CreateTableStmt.java.

References com.cloudera.impala.analysis.CreateTableStmt.owner_.

Referenced by com.cloudera.impala.analysis.CreateTableStmt.toThrift().

List<ColumnDef> com.cloudera.impala.analysis.CreateTableStmt.getPartitionColumnDefs ( )
inlineinherited
RowFormat com.cloudera.impala.analysis.CreateTableStmt.getRowFormat ( )
inlineinherited
Map<String, String> com.cloudera.impala.analysis.CreateTableStmt.getSerdeProperties ( )
inlineinherited
TableName com.cloudera.impala.analysis.CreateTableStmt.getTblName ( )
inlineinherited
Map<String, String> com.cloudera.impala.analysis.CreateTableStmt.getTblProperties ( )
inlineinherited
boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited
void com.cloudera.impala.analysis.CreateTableStmt.setLocation ( HdfsUri  location)
inlineinherited

Definition at line 136 of file CreateTableStmt.java.

String com.cloudera.impala.analysis.CreateTableStmt.toSql ( )
inlineinherited
Returns
SQL syntax corresponding to this node.

Implements com.cloudera.impala.analysis.ParseNode.

Definition at line 161 of file CreateTableStmt.java.

Referenced by com.cloudera.impala.analysis.CreateTableStmt.analyzeAvroSchema().

static void com.cloudera.impala.analysis.CreateTableStmt.unescapeProperties ( Map< String, String >  propertyMap)
inlinestaticinherited

Unescapes all values in the property map.

Definition at line 361 of file CreateTableStmt.java.

Referenced by com.cloudera.impala.analysis.CreateTableStmt.CreateTableStmt().

Member Data Documentation


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