public class WhereCompiler extends Object
Modifier and Type | Field and Description |
---|---|
protected static ParseNodeFactory |
NODE_FACTORY |
Modifier and Type | Method and Description |
---|---|
static Expression |
compile(StatementContext context,
FilterableStatement statement) |
static Expression |
compile(StatementContext context,
FilterableStatement statement,
ParseNode viewWhere,
List<Expression> dynamicFilters,
Set<SubqueryParseNode> subqueryNodes)
Optimize scan ranges by applying dynamically generated filter expressions.
|
static Expression |
compile(StatementContext context,
FilterableStatement statement,
ParseNode viewWhere,
Set<SubqueryParseNode> subqueryNodes)
Pushes where clause filter expressions into scan by building and setting a filter.
|
static Expression |
compile(StatementContext context,
ParseNode whereNode) |
protected static final ParseNodeFactory NODE_FACTORY
public static Expression compile(StatementContext context, FilterableStatement statement) throws SQLException
SQLException
public static Expression compile(StatementContext context, ParseNode whereNode) throws SQLException
SQLException
public static Expression compile(StatementContext context, FilterableStatement statement, ParseNode viewWhere, Set<SubqueryParseNode> subqueryNodes) throws SQLException
context
- the shared context during query compilationstatement
- TODOSQLException
- if mismatched types are found, bind value do not match binds,
or invalid function arguments are encountered.SQLFeatureNotSupportedException
- if an unsupported expression is encountered.ColumnNotFoundException
- if column name could not be resolvedAmbiguousColumnException
- if an unaliased column name is ambiguous across multiple tablespublic static Expression compile(StatementContext context, FilterableStatement statement, ParseNode viewWhere, List<Expression> dynamicFilters, Set<SubqueryParseNode> subqueryNodes) throws SQLException
context
- the shared context during query compilationstatement
- TODOSQLException
- if mismatched types are found, bind value do not match binds,
or invalid function arguments are encountered.SQLFeatureNotSupportedException
- if an unsupported expression is encountered.ColumnNotFoundException
- if column name could not be resolvedAmbiguousColumnException
- if an unaliased column name is ambiguous across multiple tablesCopyright © 2019 Apache Software Foundation. All Rights Reserved.