public class ExpressionTree extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExpressionTree.ANTLRNoCaseStringStream
Case insensitive ANTLR string stream
|
static class |
ExpressionTree.FilterBuilder
Helper class that wraps the stringbuilder used to build the filter over the tree,
as well as error propagation in two modes - expect errors, i.e.
|
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.
|
static class |
ExpressionTree.TreeVisitor
Depth first traversal of ExpressionTree.
|
Modifier and Type | Field and Description |
---|---|
static ExpressionTree |
EMPTY_TREE
The empty tree that can be returned for an empty filter.
|
Constructor and Description |
---|
ExpressionTree() |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExpressionTree.TreeVisitor treeVisitor) |
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.
|
void |
generateJDOFilterFragment(org.apache.hadoop.conf.Configuration conf,
Table table,
Map<String,Object> params,
ExpressionTree.FilterBuilder filterBuilder)
Generate the JDOQL filter for the given expression tree
|
ExpressionTree.TreeNode |
getRoot() |
void |
setRootForTest(ExpressionTree.TreeNode tn) |
public static final ExpressionTree EMPTY_TREE
public void accept(ExpressionTree.TreeVisitor treeVisitor) throws MetaException
MetaException
public ExpressionTree.TreeNode getRoot()
public void setRootForTest(ExpressionTree.TreeNode tn)
public void addIntermediateNode(ExpressionTree.LogicalOperator andOr)
andOr
- the operator typepublic void addLeafNode(ExpressionTree.LeafNode newNode)
newNode
- the new nodepublic void generateJDOFilterFragment(org.apache.hadoop.conf.Configuration conf, Table table, Map<String,Object> params, ExpressionTree.FilterBuilder filterBuilder) 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 valuesfilterBuilder
- the filter builder to append to.MetaException
Copyright © 2019 The Apache Software Foundation. All rights reserved.