|
||||||||||
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
public class ExpressionTree
The Class representing the filter as a binary tree. The tree has TreeNode's at intermediate level and the leaf level nodes are of type LeafNode.
Nested Class Summary | |
---|---|
static class |
ExpressionTree.ANTLRNoCaseStringStream
Case insensitive ANTLR string stream |
static class |
ExpressionTree.LeafNode
The Class representing the leaf level nodes in the ExpressionTree. |
static class |
ExpressionTree.LogicalOperator
The logical operations supported. |
static class |
ExpressionTree.Operator
The operators supported. |
static class |
ExpressionTree.TreeNode
The Class representing a Node in the ExpressionTree. |
Constructor Summary | |
---|---|
ExpressionTree()
|
Method Summary | |
---|---|
void |
addIntermediateNode(ExpressionTree.LogicalOperator andOr)
Adds a intermediate node of either type(AND/OR). |
void |
addLeafNode(ExpressionTree.LeafNode newNode)
Adds a leaf node, pushes the new node onto the stack. |
String |
generateJDOFilter(Table table,
Map<String,Object> params)
Generate the JDOQL filter for the given expression tree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionTree()
Method Detail |
---|
public void addIntermediateNode(ExpressionTree.LogicalOperator andOr)
andOr
- the operator typepublic void addLeafNode(ExpressionTree.LeafNode newNode)
newNode
- the new nodepublic String generateJDOFilter(Table table, Map<String,Object> params) throws MetaException
table
- the table being queriedparams
- the input map which is updated with the
the parameterized values. Keys are the parameter names and values
are the parameter values
MetaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |