window

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDenseRank added in v0.14.0

func NewDenseRank() sql.Expression

func NewFirstValue added in v0.11.0

func NewFirstValue(e sql.Expression) sql.Expression

func NewLastValue added in v0.14.0

func NewLastValue(e sql.Expression) sql.Expression

func NewPercentRank added in v0.10.0

func NewPercentRank() sql.Expression

func NewRank added in v0.14.0

func NewRank() sql.Expression

func NewRowNumber

func NewRowNumber() sql.Expression

Types

type DenseRank added in v0.14.0

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

func (*DenseRank) Children added in v0.14.0

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

Children implements sql.Expression

func (*DenseRank) CollationCoercibility added in v0.15.0

func (*DenseRank) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)

CollationCoercibility implements the interface sql.CollationCoercible.

func (*DenseRank) DebugString added in v0.14.0

func (p *DenseRank) DebugString() string

func (*DenseRank) Description added in v0.14.0

func (p *DenseRank) Description() string

Description implements sql.FunctionExpression

func (*DenseRank) Eval added in v0.14.0

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

Eval implements sql.Expression

func (*DenseRank) FunctionName added in v0.14.0

func (p *DenseRank) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*DenseRank) Id added in v0.18.0

func (p *DenseRank) Id() sql.ColumnId

Id implements sql.IdExpression

func (*DenseRank) IsNullable added in v0.14.0

func (p *DenseRank) IsNullable() bool

IsNullable implements sql.Expression

func (*DenseRank) NewWindowFunction added in v0.14.0

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

func (*DenseRank) Resolved added in v0.14.0

func (p *DenseRank) Resolved() bool

func (*DenseRank) String added in v0.14.0

func (p *DenseRank) String() string

func (*DenseRank) Type added in v0.14.0

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

Type implements sql.Expression

func (*DenseRank) Window added in v0.14.0

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

Window implements sql.WindowExpression

func (*DenseRank) WithChildren added in v0.14.0

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

WithChildren implements sql.Expression

func (*DenseRank) WithId added in v0.18.0

func (p *DenseRank) WithId(id sql.ColumnId) sql.IdExpression

WithId implements sql.IdExpression

func (*DenseRank) WithWindow added in v0.14.0

WithWindow implements sql.WindowAggregation

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) CollationCoercibility added in v0.15.0

func (f *FirstValue) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)

CollationCoercibility implements the interface sql.CollationCoercible.

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) Id added in v0.18.0

func (f *FirstValue) Id() sql.ColumnId

Id implements sql.IdExpression

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) WithId added in v0.18.0

func (f *FirstValue) WithId(id sql.ColumnId) sql.IdExpression

WithId implements sql.IdExpression

func (*FirstValue) WithWindow added in v0.11.0

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) CollationCoercibility added in v0.15.0

func (l *Lag) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)

CollationCoercibility implements the interface sql.CollationCoercible.

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) Id added in v0.18.0

func (l *Lag) Id() sql.ColumnId

Id implements the Aggregation interface

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) WithId added in v0.18.0

func (l *Lag) WithId(id sql.ColumnId) sql.IdExpression

WithId implements the Aggregation interface

func (*Lag) WithWindow added in v0.12.0

func (l *Lag) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression

WithWindow implements sql.WindowAggregation

type LastValue added in v0.14.0

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

func (*LastValue) Children added in v0.14.0

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

Children implements sql.Expression

func (*LastValue) CollationCoercibility added in v0.15.0

func (f *LastValue) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)

CollationCoercibility implements the interface sql.CollationCoercible.

func (*LastValue) DebugString added in v0.14.0

func (f *LastValue) DebugString() string

func (*LastValue) Description added in v0.14.0

func (f *LastValue) Description() string

Description implements sql.FunctionExpression

func (*LastValue) Eval added in v0.14.0

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

Eval implements sql.Expression

func (*LastValue) FunctionName added in v0.14.0

func (f *LastValue) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*LastValue) Id added in v0.18.0

func (f *LastValue) Id() sql.ColumnId

Id implements sql.IdExpression

func (*LastValue) IsNullable added in v0.14.0

func (f *LastValue) IsNullable() bool

IsNullable implements sql.Expression

func (*LastValue) NewWindowFunction added in v0.14.0

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

func (*LastValue) Resolved added in v0.14.0

func (f *LastValue) Resolved() bool

IsNullable implements sql.Expression

func (*LastValue) String added in v0.14.0

func (f *LastValue) String() string

func (*LastValue) Type added in v0.14.0

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

Type implements sql.Expression

func (*LastValue) Window added in v0.14.0

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

Window implements sql.WindowExpression

func (*LastValue) WithChildren added in v0.14.0

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

WithChildren implements sql.Expression

func (*LastValue) WithId added in v0.18.0

func (f *LastValue) WithId(id sql.ColumnId) sql.IdExpression

WithId implements sql.IdExpression

func (*LastValue) WithWindow added in v0.14.0

WithWindow implements sql.WindowAggregation

type Lead added in v0.14.0

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

func NewLead added in v0.14.0

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 added in v0.14.0

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

Children implements sql.Expression

func (*Lead) CollationCoercibility added in v0.15.0

func (l *Lead) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)

CollationCoercibility implements the interface sql.CollationCoercible.

func (*Lead) DebugString added in v0.14.0

func (l *Lead) DebugString() string

func (*Lead) Description added in v0.14.0

func (l *Lead) Description() string

Description implements sql.FunctionExpression

func (*Lead) Eval added in v0.14.0

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

Eval implements sql.Expression

func (*Lead) FunctionName added in v0.14.0

func (l *Lead) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*Lead) Id added in v0.18.0

func (l *Lead) Id() sql.ColumnId

Id implements sql.IdExpression

func (*Lead) IsNullable added in v0.14.0

func (l *Lead) IsNullable() bool

IsNullable implements sql.Expression

func (*Lead) NewWindowFunction added in v0.14.0

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

func (*Lead) Resolved added in v0.14.0

func (l *Lead) Resolved() bool

IsNullable implements sql.Expression

func (*Lead) String added in v0.14.0

func (l *Lead) String() string

func (*Lead) Type added in v0.14.0

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

Type implements sql.Expression

func (*Lead) Window added in v0.14.0

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

Window implements sql.WindowExpression

func (*Lead) WithChildren added in v0.14.0

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

WithChildren implements sql.Expression

func (*Lead) WithId added in v0.18.0

func (l *Lead) WithId(id sql.ColumnId) sql.IdExpression

WithId implements sql.IdExpression

func (*Lead) WithWindow added in v0.14.0

func (l *Lead) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression

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) CollationCoercibility added in v0.15.0

func (*PercentRank) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)

CollationCoercibility implements the interface sql.CollationCoercible.

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) Id added in v0.18.0

func (p *PercentRank) Id() sql.ColumnId

Id implements sql.IdExpression

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) WithId added in v0.18.0

func (p *PercentRank) WithId(id sql.ColumnId) sql.IdExpression

WithId implements sql.IdExpression

func (*PercentRank) WithWindow added in v0.10.0

WithWindow implements sql.WindowAggregation

type Rank added in v0.14.0

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

func (*Rank) Children added in v0.14.0

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

Children implements sql.Expression

func (*Rank) CollationCoercibility added in v0.15.0

func (*Rank) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)

CollationCoercibility implements the interface sql.CollationCoercible.

func (*Rank) DebugString added in v0.14.0

func (p *Rank) DebugString() string

func (*Rank) Description added in v0.14.0

func (p *Rank) Description() string

Description implements sql.FunctionExpression

func (*Rank) Eval added in v0.14.0

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

Eval implements sql.Expression

func (*Rank) FunctionName added in v0.14.0

func (p *Rank) FunctionName() string

FunctionName implements sql.FunctionExpression

func (*Rank) Id added in v0.18.0

func (p *Rank) Id() sql.ColumnId

Id implements sql.IdExpression

func (*Rank) IsNullable added in v0.14.0

func (p *Rank) IsNullable() bool

IsNullable implements sql.Expression

func (*Rank) NewWindowFunction added in v0.14.0

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

func (*Rank) Resolved added in v0.14.0

func (p *Rank) Resolved() bool

func (*Rank) String added in v0.14.0

func (p *Rank) String() string

func (*Rank) Type added in v0.14.0

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

Type implements sql.Expression

func (*Rank) Window added in v0.14.0

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

Window implements sql.WindowExpression

func (*Rank) WithChildren added in v0.14.0

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

WithChildren implements sql.Expression

func (*Rank) WithId added in v0.18.0

func (p *Rank) WithId(id sql.ColumnId) sql.IdExpression

WithId implements sql.IdExpression

func (*Rank) WithWindow added in v0.14.0

func (p *Rank) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression

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) CollationCoercibility added in v0.15.0

func (*RowNumber) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)

CollationCoercibility implements the interface sql.CollationCoercible.

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) Id added in v0.18.0

func (r *RowNumber) Id() sql.ColumnId

Id implements sql.IdExpression

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) WithId added in v0.18.0

func (r *RowNumber) WithId(id sql.ColumnId) sql.IdExpression

WithId implements sql.IdExpression

func (*RowNumber) WithWindow

WithWindow implements sql.WindowAggregation

Jump to

Keyboard shortcuts

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