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

Public Member Functions

 SelectListItem (Expr expr, String alias)
 
Expr getExpr ()
 
boolean isStar ()
 
String getAlias ()
 
void setAlias (String alias)
 
List< String > getRawPath ()
 
String toString ()
 
String toSql ()
 
String toColumnLabel (int selectListPos, boolean useHiveColLabels)
 
SelectListItem clone ()
 

Static Public Member Functions

static SelectListItem createStarItem (List< String > rawPath)
 

Private Member Functions

 SelectListItem (List< String > path)
 

Private Attributes

final Expr expr_
 
String alias_
 
final List< String > rawPath_
 
final boolean isStar_
 

Detailed Description

Definition at line 22 of file SelectListItem.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.SelectListItem.SelectListItem ( List< String >  path)
inlineprivate

Member Function Documentation

static SelectListItem com.cloudera.impala.analysis.SelectListItem.createStarItem ( List< String >  rawPath)
inlinestatic
String com.cloudera.impala.analysis.SelectListItem.getAlias ( )
inline
Expr com.cloudera.impala.analysis.SelectListItem.getExpr ( )
inline
List<String> com.cloudera.impala.analysis.SelectListItem.getRawPath ( )
inline
boolean com.cloudera.impala.analysis.SelectListItem.isStar ( )
inline
void com.cloudera.impala.analysis.SelectListItem.setAlias ( String  alias)
inline
String com.cloudera.impala.analysis.SelectListItem.toColumnLabel ( int  selectListPos,
boolean  useHiveColLabels 
)
inline

Returns a column label for this select list item. If an alias was given, then the column label is the lower case alias. If expr is a SlotRef then directly use its lower case column name. Otherwise, the label is the lower case toSql() of expr or a Hive auto-generated column name (depending on useHiveColLabels). Hive's auto-generated column labels have a "_c" prefix and a select-list pos suffix, e.g., "_c0", "_c1", "_c2", etc.

Using auto-generated columns that are consistent with Hive is important for view compatibility between Impala and Hive.

Definition at line 104 of file SelectListItem.java.

References com.cloudera.impala.analysis.SelectListItem.alias_, com.cloudera.impala.analysis.SelectListItem.expr_, com.cloudera.impala.analysis.SlotRef.getResolvedPath(), and com.cloudera.impala.analysis.SelectListItem.toSql().

Member Data Documentation


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