queryplan

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package queryplan provides helper functions to process PlanNodes (EXPERIMENTAL)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractQueryPlan added in v0.2.0

func ExtractQueryPlan(b []byte) (*spanner.ResultSetStats, *spanner.StructType, error)

func NodeTitle added in v0.3.1

func NodeTitle(node *spanner.PlanNode) string

Types

type QueryPlan

type QueryPlan struct {
	// contains filtered or unexported fields
}

func New

func New(planNodes []*spanner.PlanNode) *QueryPlan
func (qp *QueryPlan) GetNodeByChildLink(link *spanner.PlanNode_ChildLink) *spanner.PlanNode

GetNodeByChildLink returns PlanNode indicated by `link`. If `link` is nil, return the root node.

func (*QueryPlan) GetNodeByIndex

func (qp *QueryPlan) GetNodeByIndex(id int32) *spanner.PlanNode

func (*QueryPlan) IsPredicate

func (qp *QueryPlan) IsPredicate(childLink *spanner.PlanNode_ChildLink) bool

func (*QueryPlan) IsVisible

func (qp *QueryPlan) IsVisible(link *spanner.PlanNode_ChildLink) bool

func (*QueryPlan) PlanNodes added in v0.3.1

func (qp *QueryPlan) PlanNodes() []*spanner.PlanNode
func (qp *QueryPlan) VisibleChildLinks(node *spanner.PlanNode) []*spanner.PlanNode_ChildLink

Jump to

Keyboard shortcuts

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