public class PredicateUtils extends Object
Constructor and Description |
---|
PredicateUtils() |
Modifier and Type | Method and Description |
---|---|
static List<IndexRange> |
expressionToIndexRanges(List<Expression> pointPredicates,
Optional<Expression> rangePredicate,
TiTableInfo table,
TiIndexInfo index)
Build index ranges from access points and access conditions
|
static Set<ColumnRef> |
extractColumnRefFromExpression(Expression expr) |
static Expression |
mergeCNFExpressions(List<Expression> exprs) |
public static Expression mergeCNFExpressions(List<Expression> exprs)
public static Set<ColumnRef> extractColumnRefFromExpression(Expression expr)
public static List<IndexRange> expressionToIndexRanges(List<Expression> pointPredicates, Optional<Expression> rangePredicate, TiTableInfo table, TiIndexInfo index)
pointPredicates
- conditions converting to a single point accessrangePredicate
- conditions converting to a rangeCopyright © 2024 PingCAP. All rights reserved.