Documentation ¶
Index ¶
- Constants
- type Plan
- func (p *Plan) BuildPlanTrace() *tracing.PlanTrace
- func (*Plan) CloneForPlanCache(base.PlanContext) (cloned base.Plan, ok bool)
- func (p *Plan) CloneWithNewCtx(newCtx base.PlanContext) *Plan
- func (p *Plan) ExplainID() fmt.Stringer
- func (*Plan) ExplainInfo() string
- func (p *Plan) ID() int
- func (p *Plan) MemoryUsage() (sum int64)
- func (*Plan) OutputNames() types.NameSlice
- func (p *Plan) QueryBlockOffset() int
- func (*Plan) ReplaceExprColumns(_ map[string]*expression.Column)
- func (p *Plan) SCtx() planctx.PlanContext
- func (p *Plan) SetID(id int)
- func (*Plan) SetOutputNames(_ types.NameSlice)
- func (p *Plan) SetSCtx(ctx planctx.PlanContext)
- func (p *Plan) SetStats(s *property.StatsInfo)
- func (p *Plan) SetTP(tp string)
- func (p *Plan) StatsInfo() *property.StatsInfo
- func (p *Plan) TP() string
Constants ¶
const PlanSize = int64(unsafe.Sizeof(Plan{}))
PlanSize is the size of BasePlan.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plan ¶
type Plan struct {
// contains filtered or unexported fields
}
Plan Should be used as embedded struct in Plan implementations.
func NewBasePlan ¶
func NewBasePlan(ctx planctx.PlanContext, tp string, qbBlock int) Plan
NewBasePlan creates a new base plan.
func (*Plan) BuildPlanTrace ¶
BuildPlanTrace is to build the plan trace.
func (*Plan) CloneForPlanCache ¶
CloneForPlanCache clones the plan for Plan Cache.
func (*Plan) CloneWithNewCtx ¶
func (p *Plan) CloneWithNewCtx(newCtx base.PlanContext) *Plan
CloneWithNewCtx clones the plan with new context.
func (*Plan) ExplainInfo ¶
ExplainInfo is to get the explain information.
func (*Plan) MemoryUsage ¶
MemoryUsage return the memory usage of BasePlan
func (*Plan) OutputNames ¶
OutputNames returns the outputting names of each column.
func (*Plan) QueryBlockOffset ¶
QueryBlockOffset is to get the select block offset.
func (*Plan) ReplaceExprColumns ¶
func (*Plan) ReplaceExprColumns(_ map[string]*expression.Column)
ReplaceExprColumns implements Plan interface.
func (*Plan) SCtx ¶
func (p *Plan) SCtx() planctx.PlanContext
SCtx is to get the sessionctx from the plan.
func (*Plan) SetOutputNames ¶
SetOutputNames sets the outputting name by the given slice.
func (*Plan) SetSCtx ¶
func (p *Plan) SetSCtx(ctx planctx.PlanContext)
SetSCtx is to set the sessionctx for the plan.