Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
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) |
Wrapper class for parser and analyzer.
Definition at line 34 of file AnalysisContext.java.
|
inline |
Definition at line 43 of file AnalysisContext.java.
References com.cloudera.impala.analysis.AnalysisContext.authzConfig_, com.cloudera.impala.analysis.AnalysisContext.catalog_, and com.cloudera.impala.analysis.AnalysisContext.queryCtx_.
|
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().
AnalysisException | On 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_.
|
inline |
Parse and analyze 'stmt' using a specified Analyzer.
Definition at line 300 of file AnalysisContext.java.
References com.cloudera.impala.analysis.AnalysisContext.analysisResult_, com.cloudera.impala.analysis.AnalysisContext.AnalysisResult.analyzer_, com.cloudera.impala.analysis.AnalysisContext.authzConfig_, com.cloudera.impala.analysis.AnalysisContext.catalog_, gen_ir_descriptions.parser, com.cloudera.impala.analysis.AnalysisContext.queryCtx_, com.cloudera.impala.analysis.AnalysisContext.AnalysisResult.requiresRewrite(), and com.cloudera.impala.analysis.AnalysisContext.AnalysisResult.stmt_.
|
inline |
Definition at line 343 of file AnalysisContext.java.
References com.cloudera.impala.analysis.AnalysisContext.analysisResult_.
Referenced by com.cloudera.impala.analysis.AnalysisContext.getAnalyzer().
|
inline |
Definition at line 344 of file AnalysisContext.java.
References com.cloudera.impala.analysis.AnalysisContext.getAnalysisResult().
|
private |
Definition at line 41 of file AnalysisContext.java.
Referenced by com.cloudera.impala.analysis.AnalysisContext.analyze(), and com.cloudera.impala.analysis.AnalysisContext.getAnalysisResult().
|
private |
Definition at line 38 of file AnalysisContext.java.
Referenced by com.cloudera.impala.analysis.AnalysisContext.AnalysisContext(), and com.cloudera.impala.analysis.AnalysisContext.analyze().
|
private |
Definition at line 36 of file AnalysisContext.java.
Referenced by com.cloudera.impala.analysis.AnalysisContext.AnalysisContext(), and com.cloudera.impala.analysis.AnalysisContext.analyze().
|
staticprivate |
Definition at line 35 of file AnalysisContext.java.
|
private |
Definition at line 37 of file AnalysisContext.java.
Referenced by com.cloudera.impala.analysis.AnalysisContext.AnalysisContext(), and com.cloudera.impala.analysis.AnalysisContext.analyze().