org.apache.hadoop.hive.metastore.parser
Class ExpressionTree.TreeNode
java.lang.Object
org.apache.hadoop.hive.metastore.parser.ExpressionTree.TreeNode
- Direct Known Subclasses:
- ExpressionTree.LeafNode
- Enclosing class:
- ExpressionTree
public static class ExpressionTree.TreeNode
- extends Object
The Class representing a Node in the ExpressionTree.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionTree.TreeNode
public ExpressionTree.TreeNode()
ExpressionTree.TreeNode
public ExpressionTree.TreeNode(ExpressionTree.TreeNode lhs,
ExpressionTree.LogicalOperator andOr,
ExpressionTree.TreeNode rhs)
getLhs
public ExpressionTree.TreeNode getLhs()
getAndOr
public ExpressionTree.LogicalOperator getAndOr()
getRhs
public ExpressionTree.TreeNode getRhs()
accept
public void accept(ExpressionTree.TreeVisitor visitor)
throws MetaException
- Double dispatch for TreeVisitor.
- Throws:
MetaException
generateJDOFilter
public String generateJDOFilter(Table table,
Map<String,Object> params)
throws MetaException
- Generates a JDO filter statement
- 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 © 2012 The Apache Software Foundation