public static class ExpressionTree.LeafNode extends ExpressionTree.TreeNode
| Modifier and Type | Field and Description |
|---|---|
boolean |
isReverseOrder |
String |
keyName |
ExpressionTree.Operator |
operator |
Object |
value
Constant expression side of the operator.
|
| Constructor and Description |
|---|
LeafNode() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accept(ExpressionTree.TreeVisitor visitor)
Double dispatch for TreeVisitor.
|
boolean |
canJdoUseStringsWithIntegral() |
void |
generateJDOFilter(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hive.metastore.api.Table table,
Map<String,Object> params,
ExpressionTree.FilterBuilder filterBuilder)
Generates a JDO filter statement
|
int |
getPartColIndexForFilter(org.apache.hadoop.hive.metastore.api.Table table,
ExpressionTree.FilterBuilder filterBuilder)
Get partition column index in the table partition column list that
corresponds to the key that is being filtered on by this tree node.
|
getAndOr, getLhs, getRhspublic String keyName
public ExpressionTree.Operator operator
public Object value
public boolean isReverseOrder
protected void accept(ExpressionTree.TreeVisitor visitor) throws org.apache.hadoop.hive.metastore.api.MetaException
ExpressionTree.TreeNodeaccept in class ExpressionTree.TreeNodeorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void generateJDOFilter(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hive.metastore.api.Table table,
Map<String,Object> params,
ExpressionTree.FilterBuilder filterBuilder)
throws org.apache.hadoop.hive.metastore.api.MetaException
ExpressionTree.TreeNodegenerateJDOFilter in class ExpressionTree.TreeNodetable - The table on which the filter is applied. If table is not null,
then this method generates a JDO statement to get all partitions
of the table that match the filter.
If table is null, then this method generates a JDO statement to get all
tables that match the filter.params - A map of parameter key to values for the filter statement.filterBuilder - The filter builder that is used to build filter.org.apache.hadoop.hive.metastore.api.MetaExceptionpublic boolean canJdoUseStringsWithIntegral()
public int getPartColIndexForFilter(org.apache.hadoop.hive.metastore.api.Table table,
ExpressionTree.FilterBuilder filterBuilder)
throws org.apache.hadoop.hive.metastore.api.MetaException
table - The table.filterBuilder - filter builder used to report error, if any.org.apache.hadoop.hive.metastore.api.MetaExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.