Documentation ¶
Index ¶
- Constants
- func Compress(input []byte) string
- func DecodeNormalizedPlan(planString string) (string, error)
- func DecodePlan(planString string) (string, error)
- func EncodePlanNode(depth, pid int, planType string, isRoot bool, rowCount float64, ...)
- func NormalizePlanNode(depth, pid int, planType string, isRoot bool, explainInfo string, ...)
- func PhysicalIDToTypeString(id int) string
- func TypeStringToPhysicalID(tp string) int
Constants ¶
View Source
const ( // TypeSel is the type of Selection. TypeSel = "Selection" // TypeSet is the type of Set. TypeSet = "Set" // TypeProj is the type of Projection. TypeProj = "Projection" // TypeAgg is the type of Aggregation. TypeAgg = "Aggregation" // TypeHashAgg is the type of HashAgg. TypeHashAgg = "HashAgg" // TypeShow is the type of show. TypeShow = "Show" // TypeJoin is the type of Join. TypeJoin = "Join" // TypeUnion is the type of Union. TypeUnion = "Union" // TypeTableScan is the type of TableScan. TypeTableScan = "TableScan" // TypeDual is the type of TableDual. TypeDual = "TableDual" // TypeUnionScan is the type of UnionScan. TypeUnionScan = "UnionScan" // TypeSort is the type of Sort. TypeSort = "Sort" // TypeTopN is the type of TopN. TypeTopN = "TopN" // TypeLimit is the type of Limit. TypeLimit = "Limit" // TypeHashLeftJoin is the type of left hash join. TypeHashLeftJoin = "HashLeftJoin" // TypeHashRightJoin is the type of right hash join. TypeHashRightJoin = "HashRightJoin" // TypeMergeJoin is the type of merge join. TypeMergeJoin = "MergeJoin" // TypeIndexJoin is the type of index look up join. TypeIndexJoin = "IndexJoin" // TypeIndexMergeJoin is the type of index look up merge join. TypeIndexMergeJoin = "IndexMergeJoin" // TypeIndexHashJoin is the type of index nested loop hash join. TypeIndexHashJoin = "IndexHashJoin" // TypeApply is the type of Apply. TypeApply = "Apply" // TypeMaxOneRow is the type of MaxOneRow. TypeMaxOneRow = "MaxOneRow" // TypeExists is the type of Exists. TypeExists = "Exists" // TypeTableReader is the type of TableReader. TypeTableReader = "TableReader" // TypeWindow is the type of Window. TypeWindow = "Window" )
Variables ¶
This section is empty.
Functions ¶
func DecodeNormalizedPlan ¶
DecodeNormalizedPlan decodes the string to plan tree.
func DecodePlan ¶
DecodePlan use to decode the string to plan tree.
func EncodePlanNode ¶
func EncodePlanNode(depth, pid int, planType string, isRoot bool, rowCount float64, explainInfo string, buf *bytes.Buffer)
EncodePlanNode is used to encode the plan to a string.
func NormalizePlanNode ¶
func NormalizePlanNode(depth, pid int, planType string, isRoot bool, explainInfo string, buf *bytes.Buffer)
NormalizePlanNode is used to normalize the plan to a string.
func PhysicalIDToTypeString ¶
PhysicalIDToTypeString converts the plan id to plan type string.
func TypeStringToPhysicalID ¶
TypeStringToPhysicalID converts the plan type string to plan id.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.