| 程序包 | 说明 |
|---|---|
| com.pingcap.tikv.expression.visitor |
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
RangePartitionLocator.visit(ComparisonBinaryExpression node,
PartitionedTable.PartitionLocatorContext context)
For ComparisonBinaryExpression such as
year(birthday@DATE) GREATER_EQUAL 1995, we need to evaluate the result of the left node and compare it with the right node. |
Boolean |
RangePartitionLocator.visit(Constant node,
PartitionedTable.PartitionLocatorContext context)
For partition using MAXVALUE such as "partition p2 values less than MAXVALUE"
it will be converted to [[year(birthday@DATE) GREATER_EQUAL ${lower_bound}] AND 1], 1 is Constant standing for always true. |
Boolean |
RangePartitionLocator.visit(LogicalBinaryExpression node,
PartitionedTable.PartitionLocatorContext context)
For logicalBinaryExpression such as [[year(birthday@DATE) GREATER_EQUAL 1995] AND
[year(birthday@DATE) LESS_THAN 1997]] we need to get the result of these two
ComparisonBinaryExpression.
|
Copyright © 2022 PingCAP. All rights reserved.