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

Classes

class  AnalysisResult
 

Public Member Functions

 AnalysisContext (ImpaladCatalog catalog, TQueryCtx queryCtx, AuthorizationConfig authzConfig)
 
void analyze (String stmt) throws AnalysisException
 
void analyze (String stmt, Analyzer analyzer) throws AnalysisException
 
AnalysisResult getAnalysisResult ()
 
Analyzer getAnalyzer ()
 

Private Attributes

final ImpaladCatalog catalog_
 
final TQueryCtx queryCtx_
 
final AuthorizationConfig authzConfig_
 
AnalysisResult analysisResult_
 

Static Private Attributes

static final Logger LOG = LoggerFactory.getLogger(AnalysisContext.class)
 

Detailed Description

Wrapper class for parser and analyzer.

Definition at line 34 of file AnalysisContext.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.AnalysisContext.AnalysisContext ( ImpaladCatalog  catalog,
TQueryCtx  queryCtx,
AuthorizationConfig  authzConfig 
)
inline

Member Function Documentation

void com.cloudera.impala.analysis.AnalysisContext.analyze ( String  stmt) throws AnalysisException
inline

Parse and analyze 'stmt'. If 'stmt' is a nested query (i.e. query that contains subqueries), it is also rewritten by performing subquery unnesting. The transformed stmt is then re-analyzed in a new analysis context.

The result of analysis can be retrieved by calling getAnalysisResult().

Exceptions
AnalysisExceptionOn any other error, including parsing errors. Also thrown when any missing tables are detected as a result of running analysis.

Definition at line 292 of file AnalysisContext.java.

References com.cloudera.impala.analysis.AnalysisContext.authzConfig_, com.cloudera.impala.analysis.AnalysisContext.catalog_, and com.cloudera.impala.analysis.AnalysisContext.queryCtx_.

AnalysisResult com.cloudera.impala.analysis.AnalysisContext.getAnalysisResult ( )
inline
Analyzer com.cloudera.impala.analysis.AnalysisContext.getAnalyzer ( )
inline

Member Data Documentation

AnalysisResult com.cloudera.impala.analysis.AnalysisContext.analysisResult_
private
final AuthorizationConfig com.cloudera.impala.analysis.AnalysisContext.authzConfig_
private
final ImpaladCatalog com.cloudera.impala.analysis.AnalysisContext.catalog_
private
final Logger com.cloudera.impala.analysis.AnalysisContext.LOG = LoggerFactory.getLogger(AnalysisContext.class)
staticprivate

Definition at line 35 of file AnalysisContext.java.

final TQueryCtx com.cloudera.impala.analysis.AnalysisContext.queryCtx_
private

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