Documentation ¶
Index ¶
Constants ¶
View Source
const MockKind = "mock"
Variables ¶
This section is empty.
Functions ¶
func CreateLogicalMockNode ¶
func CreateLogicalMockNode(id string) *plan.LogicalNode
CreateLogicalMockNode creates a mock plan node that doesn't match any rules (other than rules that match any node)
func CreatePhysicalMockNode ¶
func CreatePhysicalMockNode(id string) *plan.PhysicalPlanNode
CreatePhysicalMockNode creates a mock plan node that doesn't match any rules (other than rules that match any node)
func CreatePlanSpec ¶
CreatePlanSpec creates a logical plan from a set of nodes and edges
Types ¶
type MockProcedureSpec ¶
type MockProcedureSpec struct {
plan.DefaultCost
}
MockProcedureSpec provides a type that implements ProcedureSpec but does not require importing packages which register rules and procedure kinds, which makes it useful for unit testing.
func (MockProcedureSpec) Copy ¶
func (MockProcedureSpec) Copy() plan.ProcedureSpec
func (MockProcedureSpec) Kind ¶
func (MockProcedureSpec) Kind() plan.ProcedureKind
type PlanSpec ¶
type PlanSpec struct { Nodes []plan.Node // Edges is a list of predecessor-to-successor edges. // [1, 3] => Nodes[1] is a predecessor of Nodes[3]. // Predecessor ordering must be encoded in this list. Edges [][2]int Resources flux.ResourceManagement Now time.Time }
Spec is a set of nodes and edges of a logical query plan
Click to show internal directories.
Click to hide internal directories.