Versions in this module Expand all Collapse all v1 v1.0.0 Oct 16, 2017 Changes in this version + const CodeUnsupportedType + const ColumnRangeType + const IndexRangeType + const IntRangeType + var ErrUnsupportedType = terror.ClassOptimizerPlan.New(CodeUnsupportedType, "Unsupported type") + func BuildIndexRange(sc *variable.StatementContext, tblInfo *model.TableInfo, ...) ([]*types.IndexRange, error) + func BuildRange(sc *variable.StatementContext, conds []expression.Expression, rangeType int, ...) (retRanges []types.Range, _ error) + func BuildTableRange(accessConditions []expression.Expression, sc *variable.StatementContext) ([]types.IntColumnRange, error) + func DetachColumnConditions(conditions []expression.Expression, colName model.CIStr) ([]expression.Expression, []expression.Expression) + func DetachCondsForSelectivity(conds []expression.Expression, rangeType int, cols []*expression.Column, ...) (accessConditions, otherConditions []expression.Expression) + func DetachIndexConditions(conditions []expression.Expression, cols []*expression.Column, lengths []int) (accessConds []expression.Expression, filterConds []expression.Expression) + func DetachIndexFilterConditions(conditions []expression.Expression, indexColumns []*model.IndexColumn, ...) ([]expression.Expression, []expression.Expression) + func DetachIndexScanConditions(conditions []expression.Expression, index *model.IndexInfo) (accessConds []expression.Expression, filterConds []expression.Expression, ...) + func FullIndexRange() []*types.IndexRange + func FullIntRange() []types.IntColumnRange + func Ranges2ColumnRanges(ranges []types.Range) []*types.ColumnRange + func Ranges2IndexRanges(ranges []types.Range) []*types.IndexRange + func Ranges2IntRanges(ranges []types.Range) []types.IntColumnRange