|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.metastore.parser.ExpressionTree.TreeNode
org.apache.hadoop.hive.metastore.parser.ExpressionTree.LeafNode
public static class ExpressionTree.LeafNode
The Class representing the leaf level nodes in the ExpressionTree.
Field Summary | |
---|---|
boolean |
isReverseOrder
|
String |
keyName
|
ExpressionTree.Operator |
operator
|
Object |
value
Constant expression side of the operator. |
Constructor Summary | |
---|---|
ExpressionTree.LeafNode()
|
Method Summary | |
---|---|
void |
accept(ExpressionTree.TreeVisitor visitor)
Double dispatch for TreeVisitor. |
String |
generateJDOFilter(Table table,
Map<String,Object> params)
Generates a JDO filter statement |
String |
getFilterPushdownParam(Table table,
int partColIndex)
Validates and gets the query parameter for filter pushdown based on the column and the constant stored in this node. |
int |
getPartColIndexForFilter(Table table)
Get partition column index in the table partition column list that corresponds to the key that is being filtered on by this tree node. |
Methods inherited from class org.apache.hadoop.hive.metastore.parser.ExpressionTree.TreeNode |
---|
getAndOr, getLhs, getRhs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String keyName
public ExpressionTree.Operator operator
public Object value
public boolean isReverseOrder
Constructor Detail |
---|
public ExpressionTree.LeafNode()
Method Detail |
---|
public void accept(ExpressionTree.TreeVisitor visitor) throws MetaException
ExpressionTree.TreeNode
accept
in class ExpressionTree.TreeNode
MetaException
public String generateJDOFilter(Table table, Map<String,Object> params) throws MetaException
ExpressionTree.TreeNode
generateJDOFilter
in class ExpressionTree.TreeNode
table
- 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.
MetaException
public int getPartColIndexForFilter(Table table) throws MetaException
table
- The table.
MetaException
public String getFilterPushdownParam(Table table, int partColIndex) throws MetaException
table
- The table.partColIndex
- The index of the column to check.
MetaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |