public static class ExpressionTree.LeafNode extends ExpressionTree.TreeNode
| Modifier and Type | Field and Description |
|---|---|
boolean |
isReverseOrder |
java.lang.String |
keyName |
ExpressionTree.Operator |
operator |
java.lang.Object |
value
Constant expression side of the operator.
|
| Constructor and Description |
|---|
LeafNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ExpressionTree.TreeVisitor visitor)
Double dispatch for TreeVisitor.
|
java.lang.String |
generateJDOFilter(Table table,
java.util.Map<java.lang.String,java.lang.Object> params)
Generates a JDO filter statement
|
java.lang.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.
|
getAndOr, getLhs, getRhspublic java.lang.String keyName
public ExpressionTree.Operator operator
public java.lang.Object value
public boolean isReverseOrder
public void accept(ExpressionTree.TreeVisitor visitor) throws MetaException
ExpressionTree.TreeNodeaccept in class ExpressionTree.TreeNodeMetaExceptionpublic java.lang.String generateJDOFilter(Table table, java.util.Map<java.lang.String,java.lang.Object> params) throws MetaException
ExpressionTree.TreeNodegenerateJDOFilter in class ExpressionTree.TreeNodetable - 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.MetaExceptionpublic int getPartColIndexForFilter(Table table) throws MetaException
table - The table.MetaExceptionpublic java.lang.String getFilterPushdownParam(Table table, int partColIndex) throws MetaException
table - The table.partColIndex - The index of the column to check.MetaExceptionCopyright © 2012 The Apache Software Foundation