baseimpl

package
v1.1.0-beta.0...-9b70321 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

func (p *Plan) BuildPlanTrace() *tracing.PlanTrace

BuildPlanTrace is to build the plan trace.

func (*Plan) CloneForPlanCache

func (*Plan) CloneForPlanCache(base.PlanContext) (cloned base.Plan, ok bool)

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) ExplainID

func (p *Plan) ExplainID() fmt.Stringer

ExplainID is to get the explain ID.

func (*Plan) ExplainInfo

func (*Plan) ExplainInfo() string

ExplainInfo is to get the explain information.

func (*Plan) ID

func (p *Plan) ID() int

ID is to get the id.

func (*Plan) MemoryUsage

func (p *Plan) MemoryUsage() (sum int64)

MemoryUsage return the memory usage of BasePlan

func (*Plan) OutputNames

func (*Plan) OutputNames() types.NameSlice

OutputNames returns the outputting names of each column.

func (*Plan) QueryBlockOffset

func (p *Plan) QueryBlockOffset() int

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) SetID

func (p *Plan) SetID(id int)

SetID is to set id.

func (*Plan) SetOutputNames

func (*Plan) SetOutputNames(_ types.NameSlice)

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.

func (*Plan) SetStats

func (p *Plan) SetStats(s *property.StatsInfo)

SetStats sets the stats

func (*Plan) SetTP

func (p *Plan) SetTP(tp string)

SetTP is to set the tp.

func (*Plan) StatsInfo

func (p *Plan) StatsInfo() *property.StatsInfo

StatsInfo is to get the stats info.

func (*Plan) TP

func (p *Plan) TP() string

TP is to get the tp.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL