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,
Map<String,Object> params,
ExpressionTree.FilterBuilder filterBuilder,
List<FieldSchema> partitionKeys)
Generates a JDO filter statement
|
int |
getPartColIndexForFilter(List<FieldSchema> partitionKeys,
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, getRhs
public String keyName
public ExpressionTree.Operator operator
public Object value
public boolean isReverseOrder
protected void accept(ExpressionTree.TreeVisitor visitor) throws MetaException
ExpressionTree.TreeNode
accept
in class ExpressionTree.TreeNode
MetaException
public void generateJDOFilter(org.apache.hadoop.conf.Configuration conf, Map<String,Object> params, ExpressionTree.FilterBuilder filterBuilder, List<FieldSchema> partitionKeys) throws MetaException
ExpressionTree.TreeNode
generateJDOFilter
in class ExpressionTree.TreeNode
params
- A map of parameter key to values for the filter statement.filterBuilder
- The filter builder that is used to build filter.MetaException
public boolean canJdoUseStringsWithIntegral()
public int getPartColIndexForFilter(List<FieldSchema> partitionKeys, ExpressionTree.FilterBuilder filterBuilder) throws MetaException
partitionKeys
- list of partition keys.filterBuilder
- filter builder used to report error, if any.MetaException
Copyright © 2022 The Apache Software Foundation. All rights reserved.