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

Public Member Functions

 StructField (String name, Type type, String comment)
 
 StructField (String name, Type type)
 
String getComment ()
 
String getName ()
 
Type getType ()
 
int getPosition ()
 
void setPosition (int position)
 
String toSql ()
 
void toThrift (TColumnType container, TTypeNode node)
 
boolean equals (Object other)
 

Protected Attributes

final String name_
 
final Type type_
 
final String comment_
 
int position_
 

Detailed Description

TODO: Support comments for struct fields. The Metastore does not properly store comments of struct fields. We set comment_ to null to avoid compatibility issues.

Definition at line 25 of file StructField.java.

Constructor & Destructor Documentation

com.cloudera.impala.catalog.StructField.StructField ( String  name,
Type  type,
String  comment 
)
inline
com.cloudera.impala.catalog.StructField.StructField ( String  name,
Type  type 
)
inline

Definition at line 37 of file StructField.java.

References impala.name.

Member Function Documentation

boolean com.cloudera.impala.catalog.StructField.equals ( Object  other)
inline
String com.cloudera.impala.catalog.StructField.getComment ( )
inline

Definition at line 41 of file StructField.java.

References com.cloudera.impala.catalog.StructField.comment_.

String com.cloudera.impala.catalog.StructField.getName ( )
inline
int com.cloudera.impala.catalog.StructField.getPosition ( )
inline
Type com.cloudera.impala.catalog.StructField.getType ( )
inline
void com.cloudera.impala.catalog.StructField.setPosition ( int  position)
inline
String com.cloudera.impala.catalog.StructField.toSql ( )
inline
void com.cloudera.impala.catalog.StructField.toThrift ( TColumnType  container,
TTypeNode  node 
)
inline

Member Data Documentation

int com.cloudera.impala.catalog.StructField.position_
protected

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