plan

package
v0.0.0-...-5f37ea0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Scan = iota
	Predicate
	Join
	Union
	Project

	CreateDb
	CreateFrag
	Insert
	Delete
)
View Source
const (
	Lt = iota
	Le
	Eq
	Ge
	Gt
	Neq
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompareType_

type CompareType_ int

Compare operation

type ConditionUnit_

type ConditionUnit_ struct {
	Lexpression Expression_
	Rexpression Expression_
	CompOp      CompareType_
}

type CreateDbOper_

type CreateDbOper_ struct {
	DbName string
}

type CreateFragOper_

type CreateFragOper_ struct {
	TableName string
	Fields    []FieldWithInfo
}

type DeleteOper_

type DeleteOper_ struct {
	TableName string
}

type Expression_

type Expression_ struct {
	IsField bool
	Field   Field_
	Value   Value_
}

type FieldWithInfo

type FieldWithInfo struct {
	FieldName string
	Size      int64
	Type      string
}

type Field_

type Field_ struct {
	TableName string
	FieldName string
}

Some other types

type Frag_

type Frag_ struct {
	Name       string
	SiteName   string
	IsVertical bool
	Cols       []string
	Condition  []ConditionUnit_
}

type InsertOper_

type InsertOper_ struct {
	TableName string
	Fields    []string
	Values    []Value_
}

type JoinOper_

type JoinOper_ struct {
	LtableName     string
	RtableName     string
	JoinConditions []ConditionUnit_
}

type OperatorType_

type OperatorType_ int

OperatorType

type Operator_

type Operator_ struct {
	FragName       string
	Unused         bool
	Parent         *Operator_
	Childs         []*Operator_
	Site           string
	NeedTransfer   bool   // 算子是否需要传输数据
	DestSite       string // 数据传输地址
	OperType       OperatorType_
	ScanOper       *ScanOper_
	PredicateOper  *PredicateOper_
	JoinOper       *JoinOper_
	UnionOper      *UnionOper_
	ProjectOper    *ProjectOper_
	CreateDbOper   *CreateDbOper_
	CreateFragOper *CreateFragOper_
	InsertOper     *InsertOper_
	DeleteOper     *DeleteOper_
}

type Plantree

type Plantree struct {
	Root        *Operator_
	OperatorNum int64
}

type PredicateOper_

type PredicateOper_ struct {
	PredConditions []ConditionUnit_
}

type ProjectOper_

type ProjectOper_ struct {
	Fields []Field_
}

type ScanOper_

type ScanOper_ struct {
	TableName string
	Frag      Frag_ //仅优化时使用,执行时不使用
}

Operators

type UnionOper_

type UnionOper_ struct {
	LtableName string
	RtableName string
}

type Value_

type Value_ string

Jump to

Keyboard shortcuts

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