Documentation ¶
Index ¶
- Variables
- type LogicalOptimizeOp
- func (op *LogicalOptimizeOp) AppendBeforeRuleOptimize(index int, name string, build func() *tracing.PlanTrace)
- func (op *LogicalOptimizeOp) AppendStepToCurrent(id int, tp string, reason, action func() string)
- func (op *LogicalOptimizeOp) RecordFinalLogicalPlan(build func() *tracing.PlanTrace)
- func (op *LogicalOptimizeOp) TracerIsNil() bool
- func (op *LogicalOptimizeOp) WithEnableOptimizeTracer(tracer *tracing.LogicalOptimizeTracer) *LogicalOptimizeOp
- type PhysicalOptimizeOp
- type PlanCostOption
Constants ¶
This section is empty.
Variables ¶
var CostFlagTrace uint64
CostFlagTrace is a mirror of costusage.CostFlagTrace, leveraging initialization assignment to avoid import cycle.
Functions ¶
This section is empty.
Types ¶
type LogicalOptimizeOp ¶
type LogicalOptimizeOp struct {
// contains filtered or unexported fields
}
LogicalOptimizeOp is logical optimizing option for tracing.
func DefaultLogicalOptimizeOption ¶
func DefaultLogicalOptimizeOption() *LogicalOptimizeOp
DefaultLogicalOptimizeOption returns the default LogicalOptimizeOp.
func (*LogicalOptimizeOp) AppendBeforeRuleOptimize ¶
func (op *LogicalOptimizeOp) AppendBeforeRuleOptimize(index int, name string, build func() *tracing.PlanTrace)
AppendBeforeRuleOptimize just appends a before-rule plan tracer.
func (*LogicalOptimizeOp) AppendStepToCurrent ¶
func (op *LogicalOptimizeOp) AppendStepToCurrent(id int, tp string, reason, action func() string)
AppendStepToCurrent appends a step of current action.
func (*LogicalOptimizeOp) RecordFinalLogicalPlan ¶
func (op *LogicalOptimizeOp) RecordFinalLogicalPlan(build func() *tracing.PlanTrace)
RecordFinalLogicalPlan records the final logical plan.
func (*LogicalOptimizeOp) TracerIsNil ¶
func (op *LogicalOptimizeOp) TracerIsNil() bool
TracerIsNil returns whether inside tracer is nil
func (*LogicalOptimizeOp) WithEnableOptimizeTracer ¶
func (op *LogicalOptimizeOp) WithEnableOptimizeTracer(tracer *tracing.LogicalOptimizeTracer) *LogicalOptimizeOp
WithEnableOptimizeTracer attach the customized tracer to current LogicalOptimizeOp.
type PhysicalOptimizeOp ¶
type PhysicalOptimizeOp struct {
// contains filtered or unexported fields
}
PhysicalOptimizeOp is logical optimizing option for tracing.
func DefaultPhysicalOptimizeOption ¶
func DefaultPhysicalOptimizeOption() *PhysicalOptimizeOp
DefaultPhysicalOptimizeOption is default physical optimizing option.
func (*PhysicalOptimizeOp) AppendCandidate ¶
func (op *PhysicalOptimizeOp) AppendCandidate(c *tracing.CandidatePlanTrace)
AppendCandidate is utility func to append the CandidatePlanTrace into current PhysicalOptimizeOp.
func (*PhysicalOptimizeOp) GetTracer ¶
func (op *PhysicalOptimizeOp) GetTracer() *tracing.PhysicalOptimizeTracer
GetTracer returns the current op's PhysicalOptimizeTracer.
func (*PhysicalOptimizeOp) WithEnableOptimizeTracer ¶
func (op *PhysicalOptimizeOp) WithEnableOptimizeTracer(tracer *tracing.PhysicalOptimizeTracer) *PhysicalOptimizeOp
WithEnableOptimizeTracer is utility func to append the PhysicalOptimizeTracer into current PhysicalOptimizeOp.
type PlanCostOption ¶
type PlanCostOption struct { CostFlag uint64 // contains filtered or unexported fields }
PlanCostOption indicates option during GetPlanCost
func NewDefaultPlanCostOption ¶
func NewDefaultPlanCostOption() *PlanCostOption
NewDefaultPlanCostOption returns PlanCostOption
func (*PlanCostOption) GetTracer ¶
func (op *PlanCostOption) GetTracer() *PhysicalOptimizeOp
GetTracer returns the current op's PhysicalOptimizeOp.
func (*PlanCostOption) WithCostFlag ¶
func (op *PlanCostOption) WithCostFlag(flag uint64) *PlanCostOption
WithCostFlag set cost flag
func (*PlanCostOption) WithOptimizeTracer ¶
func (op *PlanCostOption) WithOptimizeTracer(v *PhysicalOptimizeOp) *PlanCostOption
WithOptimizeTracer set tracer