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

Public Member Functions

 ColumnDef (String colName, TypeDef typeDef, String comment)
 
void setType (Type type)
 
Type getType ()
 
TypeDef getTypeDef ()
 
String getColName ()
 
String getComment ()
 
void analyze () throws AnalysisException
 
String toString ()
 
TColumn toThrift ()
 

Private Attributes

final String colName_
 
final String comment_
 
final TypeDef typeDef_
 
Type type_
 

Detailed Description

Represents a column definition in a CREATE/ALTER TABLE/VIEW statement. Column definitions in CREATE/ALTER TABLE statements require a column type, whereas column definitions in CREATE/ALTER VIEW statements infer the column type from the corresponding view definition. All column definitions have an optional comment. Since a column definition refers a column stored in the Metastore, the column name must be valid according to the Metastore's rules (see ).

Definition at line 32 of file ColumnDef.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.ColumnDef.ColumnDef ( String  colName,
TypeDef  typeDef,
String  comment 
)
inline

Member Function Documentation

void com.cloudera.impala.analysis.ColumnDef.analyze ( ) throws AnalysisException
inline
String com.cloudera.impala.analysis.ColumnDef.getComment ( )
inline
Type com.cloudera.impala.analysis.ColumnDef.getType ( )
inline
TypeDef com.cloudera.impala.analysis.ColumnDef.getTypeDef ( )
inline

Definition at line 49 of file ColumnDef.java.

References com.cloudera.impala.analysis.ColumnDef.typeDef_.

void com.cloudera.impala.analysis.ColumnDef.setType ( Type  type)
inline

Definition at line 47 of file ColumnDef.java.

References com.cloudera.impala.analysis.ColumnDef.type_.

String com.cloudera.impala.analysis.ColumnDef.toString ( )
inline

Member Data Documentation

final String com.cloudera.impala.analysis.ColumnDef.comment_
private
final TypeDef com.cloudera.impala.analysis.ColumnDef.typeDef_
private

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