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

Public Member Functions

 ShowDataSrcsStmt ()
 
 ShowDataSrcsStmt (String pattern)
 
String getPattern ()
 
String toSql ()
 
void analyze (Analyzer analyzer) throws AnalysisException
 
TShowDataSrcsParams toThrift ()
 
void setIsExplain ()
 
boolean isExplain ()
 

Protected Attributes

boolean isExplain_ = false
 

Private Attributes

final String pattern_
 

Detailed Description

Representation of a SHOW DATA SOURCES [pattern] statement. Acceptable syntax:

SHOW DATA SOURCES SHOW DATA SOURCES LIKE 'pattern' TODO: Refactor Show*Stmt to remove code duplication

Definition at line 28 of file ShowDataSrcsStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.ShowDataSrcsStmt.ShowDataSrcsStmt ( )
inline

Default constructor, which creates a show statement which returns all data sources.

Definition at line 36 of file ShowDataSrcsStmt.java.

com.cloudera.impala.analysis.ShowDataSrcsStmt.ShowDataSrcsStmt ( String  pattern)
inline

Constructs a show statement which matches all data sources against the supplied pattern.

Definition at line 44 of file ShowDataSrcsStmt.java.

Member Function Documentation

void com.cloudera.impala.analysis.ShowDataSrcsStmt.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 60 of file ShowDataSrcsStmt.java.

String com.cloudera.impala.analysis.ShowDataSrcsStmt.getPattern ( )
inline
boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited
String com.cloudera.impala.analysis.ShowDataSrcsStmt.toSql ( )
inline
Returns
SQL syntax corresponding to this node.

Implements com.cloudera.impala.analysis.ParseNode.

Definition at line 51 of file ShowDataSrcsStmt.java.

References com.cloudera.impala.analysis.ShowDataSrcsStmt.pattern_.

TShowDataSrcsParams com.cloudera.impala.analysis.ShowDataSrcsStmt.toThrift ( )
inline

Member Data Documentation

final String com.cloudera.impala.analysis.ShowDataSrcsStmt.pattern_
private

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