window

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFirstValue added in v0.11.0

func NewFirstValue(e sql.Expression) sql.Expression

func NewPercentRank added in v0.10.0

func NewPercentRank() sql.Expression

func NewRowNumber

func NewRowNumber() sql.Expression

Types

type FirstValue added in v0.11.0

type FirstValue struct {
	expression.UnaryExpression
	// contains filtered or unexported fields
}

func (*FirstValue) Children added in v0.11.0

func (f *FirstValue) Children() []sql.Expression

Children implements sql.Expression

func (*FirstValue) DebugString added in v0.11.0

func (f *FirstValue) DebugString() string

func (*FirstValue) Description added in v0.12.0

func (f *FirstValue) Description() string

Description implements sql.FunctionExpression

func (*FirstValue) Eval added in v0.11.0

func (f *FirstValue) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

Eval implements sql.Expression

func (*FirstValue) FunctionName added in v0.11.0

func (f *FirstValue) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*FirstValue) IsNullable added in v0.11.0

func (f *FirstValue) IsNullable() bool

IsNullable implements sql.Expression

func (*FirstValue) NewWindowFunction added in v0.12.0

func (f *FirstValue) NewWindowFunction() (sql.WindowFunction, error)

func (*FirstValue) Resolved added in v0.11.0

func (f *FirstValue) Resolved() bool

IsNullable implements sql.Expression

func (*FirstValue) String added in v0.11.0

func (f *FirstValue) String() string

func (*FirstValue) Type added in v0.11.0

func (f *FirstValue) Type() sql.Type

Type implements sql.Expression

func (*FirstValue) Window added in v0.11.0

func (f *FirstValue) Window() *sql.WindowDefinition

Window implements sql.WindowExpression

func (*FirstValue) WithChildren added in v0.11.0

func (f *FirstValue) WithChildren(children ...sql.Expression) (sql.Expression, error)

WithChildren implements sql.Expression

func (*FirstValue) WithWindow added in v0.11.0

func (f *FirstValue) WithWindow(window *sql.WindowDefinition) (sql.WindowAggregation, error)

WithWindow implements sql.WindowAggregation

type Lag added in v0.12.0

type Lag struct {
	expression.NaryExpression
	// contains filtered or unexported fields
}

func NewLag added in v0.12.0

func NewLag(e ...sql.Expression) (*Lag, error)

NewLag accepts variadic arguments to create a new Lag node: If 1 expression, use default values for [default] and [offset] If 2 expressions, use default value for [default] 3 input expression match to [child], [offset], and [default] arguments The offset is constrained to a non-negative integer expression.Literal. TODO: support user-defined variable offset

func (*Lag) Children added in v0.12.0

func (l *Lag) Children() []sql.Expression

Children implements sql.Expression

func (*Lag) DebugString added in v0.12.0

func (l *Lag) DebugString() string

func (*Lag) Description added in v0.12.0

func (l *Lag) Description() string

Description implements sql.FunctionExpression

func (*Lag) Eval added in v0.12.0

func (l *Lag) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

Eval implements sql.Expression

func (*Lag) FunctionName added in v0.12.0

func (l *Lag) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*Lag) IsNullable added in v0.12.0

func (l *Lag) IsNullable() bool

IsNullable implements sql.Expression

func (*Lag) NewWindowFunction added in v0.12.0

func (l *Lag) NewWindowFunction() (sql.WindowFunction, error)

func (*Lag) Resolved added in v0.12.0

func (l *Lag) Resolved() bool

IsNullable implements sql.Expression

func (*Lag) String added in v0.12.0

func (l *Lag) String() string

func (*Lag) Type added in v0.12.0

func (l *Lag) Type() sql.Type

Type implements sql.Expression

func (*Lag) Window added in v0.12.0

func (l *Lag) Window() *sql.WindowDefinition

Window implements sql.WindowExpression

func (*Lag) WithChildren added in v0.12.0

func (l *Lag) WithChildren(children ...sql.Expression) (sql.Expression, error)

WithChildren implements sql.Expression

func (*Lag) WithWindow added in v0.12.0

func (l *Lag) WithWindow(window *sql.WindowDefinition) (sql.WindowAggregation, error)

WithWindow implements sql.WindowAggregation

type PercentRank added in v0.10.0

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

func (*PercentRank) Children added in v0.10.0

func (p *PercentRank) Children() []sql.Expression

Children implements sql.Expression

func (*PercentRank) DebugString added in v0.10.0

func (p *PercentRank) DebugString() string

func (*PercentRank) Description added in v0.12.0

func (p *PercentRank) Description() string

Description implements sql.FunctionExpression

func (*PercentRank) Eval added in v0.10.0

func (p *PercentRank) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

Eval implements sql.Expression

func (*PercentRank) FunctionName added in v0.10.0

func (p *PercentRank) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*PercentRank) IsNullable added in v0.10.0

func (p *PercentRank) IsNullable() bool

IsNullable implements sql.Expression

func (*PercentRank) NewWindowFunction added in v0.12.0

func (p *PercentRank) NewWindowFunction() (sql.WindowFunction, error)

func (*PercentRank) Resolved added in v0.10.0

func (p *PercentRank) Resolved() bool

func (*PercentRank) String added in v0.10.0

func (p *PercentRank) String() string

func (*PercentRank) Type added in v0.10.0

func (p *PercentRank) Type() sql.Type

Type implements sql.Expression

func (*PercentRank) Window added in v0.10.0

func (p *PercentRank) Window() *sql.WindowDefinition

Window implements sql.WindowExpression

func (*PercentRank) WithChildren added in v0.10.0

func (p *PercentRank) WithChildren(children ...sql.Expression) (sql.Expression, error)

WithChildren implements sql.Expression

func (*PercentRank) WithWindow added in v0.10.0

func (p *PercentRank) WithWindow(window *sql.WindowDefinition) (sql.WindowAggregation, error)

WithWindow implements sql.WindowAggregation

type RowNumber

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

func (*RowNumber) Children

func (r *RowNumber) Children() []sql.Expression

Children implements sql.Expression

func (*RowNumber) DebugString

func (r *RowNumber) DebugString() string

func (*RowNumber) Description added in v0.12.0

func (r *RowNumber) Description() string

Description implements sql.FunctionExpression

func (*RowNumber) Eval

func (r *RowNumber) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

Eval implements sql.Expression

func (*RowNumber) FunctionName

func (r *RowNumber) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*RowNumber) IsNullable

func (r *RowNumber) IsNullable() bool

IsNullable implements sql.Expression

func (*RowNumber) NewWindowFunction added in v0.12.0

func (r *RowNumber) NewWindowFunction() (sql.WindowFunction, error)

func (*RowNumber) Resolved

func (r *RowNumber) Resolved() bool

IsNullable implements sql.Expression

func (*RowNumber) String

func (r *RowNumber) String() string

func (*RowNumber) Type

func (r *RowNumber) Type() sql.Type

Type implements sql.Expression

func (*RowNumber) Window added in v0.10.0

func (r *RowNumber) Window() *sql.WindowDefinition

Window implements sql.WindowExpression

func (*RowNumber) WithChildren

func (r *RowNumber) WithChildren(children ...sql.Expression) (sql.Expression, error)

WithChildren implements sql.Expression

func (*RowNumber) WithWindow

func (r *RowNumber) WithWindow(window *sql.WindowDefinition) (sql.WindowAggregation, error)

WithWindow implements sql.WindowAggregation

Jump to

Keyboard shortcuts

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