Documentation ¶
Index ¶
- func NewDenseRank() sql.Expression
- func NewFirstValue(e sql.Expression) sql.Expression
- func NewLastValue(e sql.Expression) sql.Expression
- func NewPercentRank() sql.Expression
- func NewRank() sql.Expression
- func NewRowNumber() sql.Expression
- type DenseRank
- func (p *DenseRank) Children() []sql.Expression
- func (*DenseRank) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (p *DenseRank) DebugString() string
- func (p *DenseRank) Description() string
- func (p *DenseRank) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (p *DenseRank) FunctionName() string
- func (p *DenseRank) Id() sql.ColumnId
- func (p *DenseRank) IsNullable() bool
- func (p *DenseRank) NewWindowFunction() (sql.WindowFunction, error)
- func (p *DenseRank) Resolved() bool
- func (p *DenseRank) String() string
- func (p *DenseRank) Type() sql.Type
- func (p *DenseRank) Window() *sql.WindowDefinition
- func (p *DenseRank) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (p *DenseRank) WithId(id sql.ColumnId) sql.IdExpression
- func (p *DenseRank) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
- type FirstValue
- func (f *FirstValue) Children() []sql.Expression
- func (f *FirstValue) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *FirstValue) DebugString() string
- func (f *FirstValue) Description() string
- func (f *FirstValue) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *FirstValue) FunctionName() string
- func (f *FirstValue) Id() sql.ColumnId
- func (f *FirstValue) IsNullable() bool
- func (f *FirstValue) NewWindowFunction() (sql.WindowFunction, error)
- func (f *FirstValue) Resolved() bool
- func (f *FirstValue) String() string
- func (f *FirstValue) Type() sql.Type
- func (f *FirstValue) Window() *sql.WindowDefinition
- func (f *FirstValue) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (f *FirstValue) WithId(id sql.ColumnId) sql.IdExpression
- func (f *FirstValue) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
- type Lag
- func (l *Lag) Children() []sql.Expression
- func (l *Lag) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (l *Lag) DebugString() string
- func (l *Lag) Description() string
- func (l *Lag) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (l *Lag) FunctionName() string
- func (l *Lag) Id() sql.ColumnId
- func (l *Lag) IsNullable() bool
- func (l *Lag) NewWindowFunction() (sql.WindowFunction, error)
- func (l *Lag) Resolved() bool
- func (l *Lag) String() string
- func (l *Lag) Type() sql.Type
- func (l *Lag) Window() *sql.WindowDefinition
- func (l *Lag) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (l *Lag) WithId(id sql.ColumnId) sql.IdExpression
- func (l *Lag) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
- type LastValue
- func (f *LastValue) Children() []sql.Expression
- func (f *LastValue) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *LastValue) DebugString() string
- func (f *LastValue) Description() string
- func (f *LastValue) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *LastValue) FunctionName() string
- func (f *LastValue) Id() sql.ColumnId
- func (f *LastValue) IsNullable() bool
- func (f *LastValue) NewWindowFunction() (sql.WindowFunction, error)
- func (f *LastValue) Resolved() bool
- func (f *LastValue) String() string
- func (f *LastValue) Type() sql.Type
- func (f *LastValue) Window() *sql.WindowDefinition
- func (f *LastValue) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (f *LastValue) WithId(id sql.ColumnId) sql.IdExpression
- func (f *LastValue) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
- type Lead
- func (l *Lead) Children() []sql.Expression
- func (l *Lead) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (l *Lead) DebugString() string
- func (l *Lead) Description() string
- func (l *Lead) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (l *Lead) FunctionName() string
- func (l *Lead) Id() sql.ColumnId
- func (l *Lead) IsNullable() bool
- func (l *Lead) NewWindowFunction() (sql.WindowFunction, error)
- func (l *Lead) Resolved() bool
- func (l *Lead) String() string
- func (l *Lead) Type() sql.Type
- func (l *Lead) Window() *sql.WindowDefinition
- func (l *Lead) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (l *Lead) WithId(id sql.ColumnId) sql.IdExpression
- func (l *Lead) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
- type PercentRank
- func (p *PercentRank) Children() []sql.Expression
- func (*PercentRank) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (p *PercentRank) DebugString() string
- func (p *PercentRank) Description() string
- func (p *PercentRank) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (p *PercentRank) FunctionName() string
- func (p *PercentRank) Id() sql.ColumnId
- func (p *PercentRank) IsNullable() bool
- func (p *PercentRank) NewWindowFunction() (sql.WindowFunction, error)
- func (p *PercentRank) Resolved() bool
- func (p *PercentRank) String() string
- func (p *PercentRank) Type() sql.Type
- func (p *PercentRank) Window() *sql.WindowDefinition
- func (p *PercentRank) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (p *PercentRank) WithId(id sql.ColumnId) sql.IdExpression
- func (p *PercentRank) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
- type Rank
- func (p *Rank) Children() []sql.Expression
- func (*Rank) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (p *Rank) DebugString() string
- func (p *Rank) Description() string
- func (p *Rank) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (p *Rank) FunctionName() string
- func (p *Rank) Id() sql.ColumnId
- func (p *Rank) IsNullable() bool
- func (p *Rank) NewWindowFunction() (sql.WindowFunction, error)
- func (p *Rank) Resolved() bool
- func (p *Rank) String() string
- func (p *Rank) Type() sql.Type
- func (p *Rank) Window() *sql.WindowDefinition
- func (p *Rank) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (p *Rank) WithId(id sql.ColumnId) sql.IdExpression
- func (p *Rank) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
- type RowNumber
- func (r *RowNumber) Children() []sql.Expression
- func (*RowNumber) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r *RowNumber) DebugString() string
- func (r *RowNumber) Description() string
- func (r *RowNumber) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r *RowNumber) FunctionName() string
- func (r *RowNumber) Id() sql.ColumnId
- func (r *RowNumber) IsNullable() bool
- func (r *RowNumber) NewWindowFunction() (sql.WindowFunction, error)
- func (r *RowNumber) Resolved() bool
- func (r *RowNumber) String() string
- func (r *RowNumber) Type() sql.Type
- func (r *RowNumber) Window() *sql.WindowDefinition
- func (r *RowNumber) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (r *RowNumber) WithId(id sql.ColumnId) sql.IdExpression
- func (r *RowNumber) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
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) CollationCoercibility ¶
func (*DenseRank) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*DenseRank) DebugString ¶
func (*DenseRank) Description ¶
Description implements sql.FunctionExpression
func (*DenseRank) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*DenseRank) IsNullable ¶
IsNullable implements sql.Expression
func (*DenseRank) NewWindowFunction ¶
func (p *DenseRank) NewWindowFunction() (sql.WindowFunction, error)
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) WithId ¶
func (p *DenseRank) WithId(id sql.ColumnId) sql.IdExpression
WithId implements sql.IdExpression
func (*DenseRank) WithWindow ¶
func (p *DenseRank) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
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) CollationCoercibility ¶
func (f *FirstValue) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*FirstValue) DebugString ¶
func (f *FirstValue) DebugString() string
func (*FirstValue) Description ¶
func (f *FirstValue) Description() string
Description implements sql.FunctionExpression
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) 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) WithId ¶
func (f *FirstValue) WithId(id sql.ColumnId) sql.IdExpression
WithId implements sql.IdExpression
func (*FirstValue) WithWindow ¶
func (f *FirstValue) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
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) CollationCoercibility ¶
func (l *Lag) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Lag) DebugString ¶
func (*Lag) Description ¶
Description implements sql.FunctionExpression
func (*Lag) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Lag) NewWindowFunction ¶
func (l *Lag) NewWindowFunction() (sql.WindowFunction, error)
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) WithId ¶
func (l *Lag) WithId(id sql.ColumnId) sql.IdExpression
WithId implements the Aggregation interface
func (*Lag) WithWindow ¶
func (l *Lag) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
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) CollationCoercibility ¶
func (f *LastValue) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*LastValue) DebugString ¶
func (*LastValue) Description ¶
Description implements sql.FunctionExpression
func (*LastValue) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*LastValue) IsNullable ¶
IsNullable implements sql.Expression
func (*LastValue) NewWindowFunction ¶
func (f *LastValue) NewWindowFunction() (sql.WindowFunction, error)
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) WithId ¶
func (f *LastValue) WithId(id sql.ColumnId) sql.IdExpression
WithId implements sql.IdExpression
func (*LastValue) WithWindow ¶
func (f *LastValue) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
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) CollationCoercibility ¶
func (l *Lead) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Lead) DebugString ¶
func (*Lead) Description ¶
Description implements sql.FunctionExpression
func (*Lead) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Lead) NewWindowFunction ¶
func (l *Lead) NewWindowFunction() (sql.WindowFunction, error)
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) WithId ¶
func (l *Lead) WithId(id sql.ColumnId) sql.IdExpression
WithId implements sql.IdExpression
func (*Lead) WithWindow ¶
func (l *Lead) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
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) CollationCoercibility ¶
func (*PercentRank) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*PercentRank) DebugString ¶
func (p *PercentRank) DebugString() string
func (*PercentRank) Description ¶
func (p *PercentRank) Description() string
Description implements sql.FunctionExpression
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) 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) WithId ¶
func (p *PercentRank) WithId(id sql.ColumnId) sql.IdExpression
WithId implements sql.IdExpression
func (*PercentRank) WithWindow ¶
func (p *PercentRank) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
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) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Rank) DebugString ¶
func (*Rank) Description ¶
Description implements sql.FunctionExpression
func (*Rank) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Rank) NewWindowFunction ¶
func (p *Rank) NewWindowFunction() (sql.WindowFunction, error)
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) WithId ¶
func (p *Rank) WithId(id sql.ColumnId) sql.IdExpression
WithId implements sql.IdExpression
func (*Rank) WithWindow ¶
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 ¶
func (*RowNumber) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*RowNumber) DebugString ¶
func (*RowNumber) Description ¶
Description implements sql.FunctionExpression
func (*RowNumber) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*RowNumber) IsNullable ¶
IsNullable implements sql.Expression
func (*RowNumber) NewWindowFunction ¶
func (r *RowNumber) NewWindowFunction() (sql.WindowFunction, error)
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) WithId ¶
func (r *RowNumber) WithId(id sql.ColumnId) sql.IdExpression
WithId implements sql.IdExpression
func (*RowNumber) WithWindow ¶
func (r *RowNumber) WithWindow(window *sql.WindowDefinition) sql.WindowAdaptableExpression
WithWindow implements sql.WindowAggregation