optimizetrace

package
v1.1.0-beta.0...-d5b6b69 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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