use of org.apache.phoenix.parse.LessThanOrEqualParseNode in project phoenix by apache.
the class StatementNormalizer method visitLeave.
@Override
public ParseNode visitLeave(final BetweenParseNode node, List<ParseNode> nodes) throws SQLException {
LessThanOrEqualParseNode lhsNode = NODE_FACTORY.lte(node.getChildren().get(1), node.getChildren().get(0));
LessThanOrEqualParseNode rhsNode = NODE_FACTORY.lte(node.getChildren().get(0), node.getChildren().get(2));
List<ParseNode> parseNodes = Lists.newArrayListWithExpectedSize(2);
parseNodes.add(this.visitLeave(lhsNode, lhsNode.getChildren()));
parseNodes.add(this.visitLeave(rhsNode, rhsNode.getChildren()));
return super.visitLeave(node, parseNodes);
}
Aggregations