org.apache.hadoop.hive.metastore.parser
Class ExpressionTree.LeafNode
java.lang.Object
org.apache.hadoop.hive.metastore.parser.ExpressionTree.TreeNode
org.apache.hadoop.hive.metastore.parser.ExpressionTree.LeafNode
- Enclosing class:
- ExpressionTree
public static class ExpressionTree.LeafNode
- extends ExpressionTree.TreeNode
The Class representing the leaf level nodes in the ExpressionTree.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keyName
public String keyName
operator
public ExpressionTree.Operator operator
value
public Object value
isReverseOrder
public boolean isReverseOrder
ExpressionTree.LeafNode
public ExpressionTree.LeafNode()
generateJDOFilter
public String generateJDOFilter(Table table,
Map<String,Object> params)
throws MetaException
- Description copied from class:
ExpressionTree.TreeNode
- Generates a JDO filter statement
- Overrides:
generateJDOFilter
in class ExpressionTree.TreeNode
- Parameters:
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.
- Returns:
- a JDO filter statement
- Throws:
MetaException
Copyright © 2011 The Apache Software Foundation