window

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDenseRank

func NewDenseRank() sql.Expression

func NewFirstValue

func NewFirstValue(e sql.Expression) sql.Expression

func NewLastValue

func NewLastValue(e sql.Expression) sql.Expression

func NewPercentRank

func NewPercentRank() sql.Expression

func NewRank

func NewRank() sql.Expression

func NewRowNumber

func NewRowNumber() sql.Expression

Types

type DenseRank

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

func (*DenseRank) Children

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

Children implements sql.Expression

func (*DenseRank) DebugString

func (p *DenseRank) DebugString() string

func (*DenseRank) Description

func (p *DenseRank) Description() string

Description implements sql.FunctionExpression

func (*DenseRank) Eval

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

Eval implements sql.Expression

func (*DenseRank) FunctionName

func (p *DenseRank) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*DenseRank) IsNullable

func (p *DenseRank) IsNullable() bool

IsNullable implements sql.Expression

func (*DenseRank) NewWindowFunction

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

func (*DenseRank) Resolved

func (p *DenseRank) Resolved() bool

func (*DenseRank) String

func (p *DenseRank) String() string

func (*DenseRank) Type

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

Type implements sql.Expression

func (*DenseRank) Window

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

Window implements sql.WindowExpression

func (*DenseRank) WithChildren

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

WithChildren implements sql.Expression

func (*DenseRank) WithWindow

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

WithWindow implements sql.WindowAggregation

type FirstValue

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

func (*FirstValue) Children

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

Children implements sql.Expression

func (*FirstValue) DebugString

func (f *FirstValue) DebugString() string

func (*FirstValue) Description

func (f *FirstValue) Description() string

Description implements sql.FunctionExpression

func (*FirstValue) Eval

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

Eval implements sql.Expression

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

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

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

Window implements sql.WindowExpression

func (*FirstValue) WithChildren

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

WithChildren implements sql.Expression

func (*FirstValue) WithWindow

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

WithWindow implements sql.WindowAggregation

type Lag

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

func NewLag

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

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

Children implements sql.Expression

func (*Lag) DebugString

func (l *Lag) DebugString() string

func (*Lag) Description

func (l *Lag) Description() string

Description implements sql.FunctionExpression

func (*Lag) Eval

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

Eval implements sql.Expression

func (*Lag) FunctionName

func (l *Lag) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*Lag) IsNullable

func (l *Lag) IsNullable() bool

IsNullable implements sql.Expression

func (*Lag) NewWindowFunction

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

func (*Lag) Resolved

func (l *Lag) Resolved() bool

IsNullable implements sql.Expression

func (*Lag) String

func (l *Lag) String() string

func (*Lag) Type

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

Type implements sql.Expression

func (*Lag) Window

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

Window implements sql.WindowExpression

func (*Lag) WithChildren

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

WithChildren implements sql.Expression

func (*Lag) WithWindow

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

WithWindow implements sql.WindowAggregation

type LastValue

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

func (*LastValue) Children

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

Children implements sql.Expression

func (*LastValue) DebugString

func (f *LastValue) DebugString() string

func (*LastValue) Description

func (f *LastValue) Description() string

Description implements sql.FunctionExpression

func (*LastValue) Eval

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

Eval implements sql.Expression

func (*LastValue) FunctionName

func (f *LastValue) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*LastValue) IsNullable

func (f *LastValue) IsNullable() bool

IsNullable implements sql.Expression

func (*LastValue) NewWindowFunction

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

func (*LastValue) Resolved

func (f *LastValue) Resolved() bool

IsNullable implements sql.Expression

func (*LastValue) String

func (f *LastValue) String() string

func (*LastValue) Type

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

Type implements sql.Expression

func (*LastValue) Window

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

Window implements sql.WindowExpression

func (*LastValue) WithChildren

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

WithChildren implements sql.Expression

func (*LastValue) WithWindow

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

WithWindow implements sql.WindowAggregation

type Lead

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

func NewLead

func NewLead(e ...sql.Expression) (*Lead, error)

NewLead accepts variadic arguments to create a new Lead 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 (*Lead) Children

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

Children implements sql.Expression

func (*Lead) DebugString

func (l *Lead) DebugString() string

func (*Lead) Description

func (l *Lead) Description() string

Description implements sql.FunctionExpression

func (*Lead) Eval

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

Eval implements sql.Expression

func (*Lead) FunctionName

func (l *Lead) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*Lead) IsNullable

func (l *Lead) IsNullable() bool

IsNullable implements sql.Expression

func (*Lead) NewWindowFunction

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

func (*Lead) Resolved

func (l *Lead) Resolved() bool

IsNullable implements sql.Expression

func (*Lead) String

func (l *Lead) String() string

func (*Lead) Type

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

Type implements sql.Expression

func (*Lead) Window

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

Window implements sql.WindowExpression

func (*Lead) WithChildren

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

WithChildren implements sql.Expression

func (*Lead) WithWindow

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

WithWindow implements sql.WindowAggregation

type PercentRank

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

func (*PercentRank) Children

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

Children implements sql.Expression

func (*PercentRank) DebugString

func (p *PercentRank) DebugString() string

func (*PercentRank) Description

func (p *PercentRank) Description() string

Description implements sql.FunctionExpression

func (*PercentRank) Eval

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

Eval implements sql.Expression

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

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

func (*PercentRank) Resolved

func (p *PercentRank) Resolved() bool

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

Window implements sql.WindowExpression

func (*PercentRank) WithChildren

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

WithChildren implements sql.Expression

func (*PercentRank) WithWindow

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

WithWindow implements sql.WindowAggregation

type Rank

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

func (*Rank) Children

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

Children implements sql.Expression

func (*Rank) DebugString

func (p *Rank) DebugString() string

func (*Rank) Description

func (p *Rank) Description() string

Description implements sql.FunctionExpression

func (*Rank) Eval

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

Eval implements sql.Expression

func (*Rank) FunctionName

func (p *Rank) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*Rank) IsNullable

func (p *Rank) IsNullable() bool

IsNullable implements sql.Expression

func (*Rank) NewWindowFunction

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

func (*Rank) Resolved

func (p *Rank) Resolved() bool

func (*Rank) String

func (p *Rank) String() string

func (*Rank) Type

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

Type implements sql.Expression

func (*Rank) Window

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

Window implements sql.WindowExpression

func (*Rank) WithChildren

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

WithChildren implements sql.Expression

func (*Rank) WithWindow

func (p *Rank) 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

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

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

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