window

package
v0.10.1-0...-0d403c5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFirstValue

func NewFirstValue(ctx *sql.Context, e sql.Expression) sql.Expression

func NewPercentRank

func NewPercentRank(ctx *sql.Context) sql.Expression

func NewRowNumber

func NewRowNumber(ctx *sql.Context) sql.Expression

Types

type FirstValue

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

func (*FirstValue) Add

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

Add implements sql.WindowAggregation

func (*FirstValue) Children

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

Children implements sql.Expression

func (*FirstValue) DebugString

func (f *FirstValue) DebugString() string

func (*FirstValue) Eval

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

Eval implements sql.Expression

func (*FirstValue) EvalRow

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

EvalRow implements sql.WindowAggregation

func (*FirstValue) Finish

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

Finish implements sql.WindowAggregation

func (*FirstValue) FunctionName

func (f *FirstValue) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*FirstValue) IsNullable

func (f *FirstValue) IsNullable() bool

IsNullable implements sql.Expression

func (*FirstValue) NewBuffer

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

func (*FirstValue) Resolved

func (f *FirstValue) Resolved() bool

IsNullable implements sql.Expression

func (*FirstValue) String

func (f *FirstValue) String() string

func (*FirstValue) Type

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

Type implements sql.Expression

func (*FirstValue) Window

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

Window implements sql.WindowExpression

func (*FirstValue) WithChildren

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

WithChildren implements sql.Expression

func (*FirstValue) WithWindow

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

WithWindow implements sql.WindowAggregation

type PercentRank

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

func (*PercentRank) Add

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

Add implements sql.WindowAggregation

func (*PercentRank) Children

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

Children implements sql.Expression

func (*PercentRank) DebugString

func (p *PercentRank) DebugString() string

func (*PercentRank) Eval

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

Eval implements sql.Expression

func (*PercentRank) EvalRow

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

EvalRow implements sql.WindowAggregation

func (*PercentRank) Finish

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

Finish implements sql.WindowAggregation

func (*PercentRank) FunctionName

func (p *PercentRank) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*PercentRank) IsNullable

func (p *PercentRank) IsNullable() bool

IsNullable implements sql.Expression

func (*PercentRank) NewBuffer

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

func (*PercentRank) Resolved

func (p *PercentRank) Resolved() bool

IsNullable implements sql.Expression

func (*PercentRank) String

func (p *PercentRank) String() string

func (*PercentRank) Type

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

Type implements sql.Expression

func (*PercentRank) Window

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

Window implements sql.WindowExpression

func (*PercentRank) WithChildren

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

WithChildren implements sql.Expression

func (*PercentRank) WithWindow

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

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

Window implements sql.WindowExpression

func (*RowNumber) WithChildren

func (r *RowNumber) WithChildren(ctx *sql.Context, 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