testexpr

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Rel      *props.Relational
	Required *physical.Required
	Provided *physical.Provided
	Priv     interface{}

	// We embed a RelExpr to provide implementation for the unexported methods of
	// RelExpr. This should not be initialized (resulting in a panic if any of
	// those methods are called).
	memo.RelExpr
}

Instance is a dummy RelExpr that contains various properties that can be extracted via that interface. It can be initialized with whatever subset of fields are required for the particular test; for example:

e := &testexpr.Instance{
  Rel: &props.Relational{...},
  Provided: &physical.Provided{...},
}

func (*Instance) Child

func (e *Instance) Child(nth int) opt.Expr

Child is part of the RelExpr interface.

func (*Instance) ChildCount

func (e *Instance) ChildCount() int

ChildCount is part of the RelExpr interface.

func (*Instance) Cost

func (e *Instance) Cost() memo.Cost

Cost is part of the RelExpr interface.

func (*Instance) FirstExpr

func (e *Instance) FirstExpr() memo.RelExpr

FirstExpr is part of the RelExpr interface.

func (*Instance) Memo

func (e *Instance) Memo() *memo.Memo

Memo is part of the RelExpr interface.

func (*Instance) NextExpr

func (e *Instance) NextExpr() memo.RelExpr

NextExpr is part of the RelExpr interface.

func (*Instance) Op

func (e *Instance) Op() opt.Operator

Op is part of the RelExpr interface.

func (*Instance) Private

func (e *Instance) Private() interface{}

Private is part of the RelExpr interface.

func (*Instance) ProvidedPhysical

func (e *Instance) ProvidedPhysical() *physical.Provided

ProvidedPhysical is part of the RelExpr interface.

func (*Instance) Relational

func (e *Instance) Relational() *props.Relational

Relational is part of the RelExpr interface.

func (*Instance) RequiredPhysical

func (e *Instance) RequiredPhysical() *physical.Required

RequiredPhysical is part of the RelExpr interface.

func (*Instance) SetChild

func (e *Instance) SetChild(nth int, child opt.Expr)

SetChild is part of the RelExpr interface.

func (*Instance) String

func (e *Instance) String() string

String is part of the RelExpr interface.

Jump to

Keyboard shortcuts

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