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 |
|---|
ExpressionTree.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,
Table table,
Map<String,Object> params,
ExpressionTree.FilterBuilder filterBuilder)
Generates a JDO filter statement
|
int |
getPartColIndexForFilter(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 MetaException
ExpressionTree.TreeNodeaccept in class ExpressionTree.TreeNodeMetaExceptionpublic void generateJDOFilter(org.apache.hadoop.conf.Configuration conf,
Table table,
Map<String,Object> params,
ExpressionTree.FilterBuilder filterBuilder)
throws 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.MetaExceptionpublic boolean canJdoUseStringsWithIntegral()
operator - operatorpublic int getPartColIndexForFilter(Table table, ExpressionTree.FilterBuilder filterBuilder) throws MetaException
table - The table.filterBuilder - filter builder used to report error, if any.MetaExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.