Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
LimitElement (Expr limitExpr, Expr offsetExpr) | |
Expr | getLimitExpr () |
Expr | getOffsetExpr () |
long | getLimit () |
boolean | hasLimit () |
long | getOffset () |
String | toSql () |
void | analyze (Analyzer analyzer) throws AnalysisException |
LimitElement | clone () |
Protected Member Functions | |
LimitElement (LimitElement other) | |
Static Private Member Functions | |
static long | evalIntegerExpr (Analyzer analyzer, Expr expr, String name) throws AnalysisException |
Private Attributes | |
final Expr | limitExpr_ |
final Expr | offsetExpr_ |
long | limit_ |
long | offset_ |
boolean | isAnalyzed_ |
Combination of limit and offset expressions.
Definition at line 26 of file LimitElement.java.
Constructs the LimitElement.
limitExpr | The limit expression. May be null if there is no LIMIT clause. |
offsetExpr | The offset expression. May be null if there is no OFFSET clause. |
Definition at line 38 of file LimitElement.java.
References com.cloudera.impala.analysis.LimitElement.isAnalyzed_, com.cloudera.impala.analysis.LimitElement.limit_, and com.cloudera.impala.analysis.LimitElement.offset_.
Referenced by com.cloudera.impala.analysis.LimitElement.clone().
|
inlineprotected |
Copy c'tor used in clone().
Definition at line 49 of file LimitElement.java.
References com.cloudera.impala.analysis.Expr.clone(), com.cloudera.impala.analysis.LimitElement.isAnalyzed_, com.cloudera.impala.analysis.LimitElement.limit_, com.cloudera.impala.analysis.LimitElement.limitExpr_, com.cloudera.impala.analysis.LimitElement.offset_, and com.cloudera.impala.analysis.LimitElement.offsetExpr_.
|
inline |
Definition at line 98 of file LimitElement.java.
References com.cloudera.impala.analysis.LimitElement.evalIntegerExpr(), com.cloudera.impala.analysis.Expr.getType(), com.cloudera.impala.analysis.LimitElement.isAnalyzed_, com.cloudera.impala.analysis.Expr.isConstant(), com.cloudera.impala.analysis.LimitElement.limit_, com.cloudera.impala.analysis.LimitElement.limitExpr_, com.cloudera.impala.analysis.LimitElement.offset_, com.cloudera.impala.analysis.LimitElement.offsetExpr_, and com.cloudera.impala.analysis.Expr.toSql().
|
inline |
Definition at line 165 of file LimitElement.java.
References com.cloudera.impala.analysis.LimitElement.LimitElement().
Referenced by com.cloudera.impala.analysis.ValuesStmt.clone(), com.cloudera.impala.analysis.UnionStmt.clone(), and com.cloudera.impala.analysis.SelectStmt.clone().
|
inlinestaticprivate |
Evaluations an expression to a non-zero integral value, returned as a long. Throws if the expression cannot be evaluated, if the value evaluates to null, or if the result is negative. The 'name' parameter is used in exception messages, e.g. "LIMIT expression evaluates to NULL".
Definition at line 136 of file LimitElement.java.
References impala.name.
Referenced by com.cloudera.impala.analysis.LimitElement.analyze().
|
inline |
Returns the integer limit, evaluated from the limit expression. Must call analyze() first. If no limit was set, then -1 is returned.
Definition at line 64 of file LimitElement.java.
References com.cloudera.impala.analysis.LimitElement.isAnalyzed_, and com.cloudera.impala.analysis.LimitElement.limit_.
Referenced by com.cloudera.impala.analysis.SelectStmt.returnsSingleRow().
|
inline |
Definition at line 57 of file LimitElement.java.
References com.cloudera.impala.analysis.LimitElement.limitExpr_.
|
inline |
Returns the integer offset, evaluated from the offset expression. Must call analyze() first. If no offsetExpr exists, then 0 (the default offset) is returned.
Definition at line 78 of file LimitElement.java.
References com.cloudera.impala.analysis.LimitElement.isAnalyzed_, and com.cloudera.impala.analysis.LimitElement.offset_.
|
inline |
Definition at line 58 of file LimitElement.java.
References com.cloudera.impala.analysis.LimitElement.offsetExpr_.
Referenced by com.cloudera.impala.analysis.QueryStmt.analyzeLimit().
|
inline |
Definition at line 69 of file LimitElement.java.
References com.cloudera.impala.analysis.LimitElement.isAnalyzed_, and com.cloudera.impala.analysis.LimitElement.limit_.
|
inline |
Definition at line 83 of file LimitElement.java.
References com.cloudera.impala.analysis.LimitElement.isAnalyzed_, com.cloudera.impala.analysis.LimitElement.limitExpr_, com.cloudera.impala.analysis.LimitElement.offset_, and com.cloudera.impala.analysis.LimitElement.offsetExpr_.
Referenced by com.cloudera.impala.analysis.QueryStmt.analyzeLimit().
|
private |
Definition at line 31 of file LimitElement.java.
Referenced by com.cloudera.impala.analysis.LimitElement.analyze(), com.cloudera.impala.analysis.LimitElement.getLimit(), com.cloudera.impala.analysis.LimitElement.getOffset(), com.cloudera.impala.analysis.LimitElement.hasLimit(), com.cloudera.impala.analysis.LimitElement.LimitElement(), and com.cloudera.impala.analysis.LimitElement.toSql().
|
private |
|
private |
|
private |
|
private |