window

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 5 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) Add added in v0.11.0

func (f *FirstValue) Add(ctx *sql.Context, buffer, row sql.Row) error

Add implements sql.WindowAggregation

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) Eval added in v0.11.0

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

Eval implements sql.Expression

func (*FirstValue) EvalRow added in v0.11.0

func (f *FirstValue) EvalRow(i int, buffer sql.Row) (interface{}, error)

EvalRow implements sql.WindowAggregation

func (*FirstValue) Finish added in v0.11.0

func (f *FirstValue) Finish(ctx *sql.Context, buffer sql.Row) error

Finish implements sql.WindowAggregation

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) NewBuffer added in v0.11.0

func (f *FirstValue) NewBuffer() sql.Row

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.Window

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.Window) (sql.WindowAggregation, error)

WithWindow implements sql.WindowAggregation

type PercentRank added in v0.10.0

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

func (*PercentRank) Add added in v0.10.0

func (p *PercentRank) Add(ctx *sql.Context, buffer, row sql.Row) error

Add implements sql.WindowAggregation

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) Eval added in v0.10.0

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

Eval implements sql.Expression

func (*PercentRank) EvalRow added in v0.10.0

func (p *PercentRank) EvalRow(i int, buffer sql.Row) (interface{}, error)

EvalRow implements sql.WindowAggregation

func (*PercentRank) Finish added in v0.10.0

func (p *PercentRank) Finish(ctx *sql.Context, buffer sql.Row) error

Finish implements sql.WindowAggregation

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) NewBuffer added in v0.10.0

func (p *PercentRank) NewBuffer() sql.Row

func (*PercentRank) Resolved added in v0.10.0

func (p *PercentRank) Resolved() bool

IsNullable implements sql.Expression

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.Window

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.Window) (sql.WindowAggregation, error)

WithWindow implements sql.WindowAggregation

type RowNumber

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

func (*RowNumber) Add

func (r *RowNumber) Add(ctx *sql.Context, buffer, row sql.Row) error

Add implements sql.WindowAggregation

func (*RowNumber) Children

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

Children implements sql.Expression

func (*RowNumber) DebugString

func (r *RowNumber) DebugString() string

func (*RowNumber) Eval

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

Eval implements sql.Expression

func (*RowNumber) EvalRow

func (r *RowNumber) EvalRow(i int, buffer sql.Row) (interface{}, error)

EvalRow implements sql.WindowAggregation

func (*RowNumber) Finish

func (r *RowNumber) Finish(ctx *sql.Context, buffer sql.Row) error

Finish implements sql.WindowAggregation

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) NewBuffer

func (r *RowNumber) NewBuffer() sql.Row

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.Window

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.Window) (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