public class RangeSetBuilder<C extends Comparable> extends DefaultVisitor<com.google.common.collect.RangeSet<C>,Void>
C. It also extends DefaultVisitor and
override and LogicalBinaryExpression's visit. For ComparisonBinaryExpression, we
cannot just override it because IndexRangeSetBuilder and LogicalBinaryExpression
has different behavior. A method visitComparisonBinaryExpr is added with extra boolean
variable to control the behavior.| Constructor and Description |
|---|
RangeSetBuilder() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.RangeSet<C> |
buildRange(Expression predicate) |
protected com.google.common.collect.RangeSet<C> |
process(Expression node,
Void context) |
protected com.google.common.collect.RangeSet<C> |
visit(LogicalBinaryExpression node,
Void context) |
protected com.google.common.collect.RangeSet<C> visit(LogicalBinaryExpression node, Void context)
visit in class DefaultVisitor<com.google.common.collect.RangeSet<C extends Comparable>,Void>public com.google.common.collect.RangeSet<C> buildRange(Expression predicate)
protected com.google.common.collect.RangeSet<C> process(Expression node, Void context)
process in class DefaultVisitor<com.google.common.collect.RangeSet<C extends Comparable>,Void>Copyright © 2025 PingCAP. All rights reserved.