Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_FIELD_NAME_PREFIX string = "rengine_field_"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateOp ¶
type AggregateOp struct { Dimensions xsql.Dimensions Alias xsql.Fields }
func (*AggregateOp) Apply ¶
func (p *AggregateOp) Apply(ctx api.StreamContext, data interface{}, fv *xsql.FunctionValuer, afv *xsql.AggregateFunctionValuer) interface{}
*
- input: *xsql.Tuple from preprocessor | xsql.WindowTuplesSet from windowOp | xsql.JoinTupleSets from joinOp
- output: xsql.GroupedTuplesSet
type FilterOp ¶
func (*FilterOp) Apply ¶
func (p *FilterOp) Apply(ctx api.StreamContext, data interface{}, fv *xsql.FunctionValuer, afv *xsql.AggregateFunctionValuer) interface{}
*
- input: *xsql.Tuple from preprocessor | xsql.WindowTuplesSet from windowOp | xsql.JoinTupleSets from joinOp
- output: *xsql.Tuple | xsql.WindowTuplesSet | xsql.JoinTupleSets
type HavingOp ¶
func (*HavingOp) Apply ¶
func (p *HavingOp) Apply(ctx api.StreamContext, data interface{}, fv *xsql.FunctionValuer, afv *xsql.AggregateFunctionValuer) interface{}
type JoinOp ¶
TODO join expr should only be the equal op between 2 streams like tb1.id = tb2.id
func (*JoinOp) Apply ¶
func (jp *JoinOp) Apply(ctx api.StreamContext, data interface{}, fv *xsql.FunctionValuer, _ *xsql.AggregateFunctionValuer) interface{}
input: xsql.WindowTuplesSet from windowOp, window is required for join output: xsql.JoinTupleSets
type OrderOp ¶
type OrderOp struct {
SortFields xsql.SortFields
}
func (*OrderOp) Apply ¶
func (p *OrderOp) Apply(ctx api.StreamContext, data interface{}, fv *xsql.FunctionValuer, _ *xsql.AggregateFunctionValuer) interface{}
*
- input: *xsql.Tuple from preprocessor | xsql.WindowTuplesSet from windowOp | xsql.JoinTupleSets from joinOp
- output: *xsql.Tuple | xsql.WindowTuplesSet | xsql.JoinTupleSets
type Preprocessor ¶
type Preprocessor struct {
// contains filtered or unexported fields
}
func NewPreprocessor ¶
func (*Preprocessor) Apply ¶
func (p *Preprocessor) Apply(ctx api.StreamContext, data interface{}, fv *xsql.FunctionValuer, _ *xsql.AggregateFunctionValuer) interface{}
* input: *xsql.Tuple * output: *xsql.Tuple
type ProjectOp ¶
type ProjectOp struct { Fields xsql.Fields IsAggregate bool SendMeta bool // contains filtered or unexported fields }
func (*ProjectOp) Apply ¶
func (pp *ProjectOp) Apply(ctx api.StreamContext, data interface{}, fv *xsql.FunctionValuer, afv *xsql.AggregateFunctionValuer) interface{}
*
- input: *xsql.Tuple from preprocessor or filterOp | xsql.WindowTuplesSet from windowOp or filterOp | xsql.JoinTupleSets from joinOp or filterOp
- output: []map[string]interface{}
Click to show internal directories.
Click to hide internal directories.