public class RangePartitionPruner extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
canBePruned(Expression filter)
return false if table cannot be pruning or partition table is not enabled.
|
List<TiPartitionDef> |
prune(List<Expression> filters)
When table is a partition table and its type is range.
|
public List<TiPartitionDef> prune(List<Expression> filters)
filters
- is where condition belong to a select statement.public boolean canBePruned(Expression filter)
filter
- is a where condition. It must be a cnf and does not contain not or isnull.Copyright © 2024 PingCAP. All rights reserved.