Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpOpts ¶ added in v2.3.0
type ExpOpts struct {
UseSliceTuple bool `json:"useSliceTuple" yaml:"useSliceTuple"`
}
type OptimizeControl ¶ added in v2.2.0
type OptimizeControl struct {
DisableOptimizeRules []string `json:"disableOptimizeRules" yaml:"disableOptimizeRules"`
}
func (*OptimizeControl) IsOptimizeEnabled ¶ added in v2.2.0
func (oc *OptimizeControl) IsOptimizeEnabled(name string) bool
type PlanOptimizeStrategy ¶ added in v2.1.0
type PlanOptimizeStrategy struct {
EnableIncrementalWindow bool `json:"enableIncrementalWindow" yaml:"enableIncrementalWindow"`
EnableAliasPushdown bool `json:"enableAliasPushdown,omitempty" yaml:"enableAliasPushdown,omitempty"`
DisableAliasRefCal bool `json:"disableAliasRefCal,omitempty" yaml:"disableAliasRefCal,omitempty"`
OptimizeControl *OptimizeControl `json:"optimizeControl,omitempty" yaml:"optimizeControl,omitempty"`
WindowOption *WindowOption `json:"windowOption,omitempty" yaml:"windowOption,omitempty"`
}
func (*PlanOptimizeStrategy) GetWindowVersion ¶ added in v2.3.0
func (p *PlanOptimizeStrategy) GetWindowVersion() string
func (*PlanOptimizeStrategy) IsAliasRefCalEnable ¶ added in v2.1.0
func (p *PlanOptimizeStrategy) IsAliasRefCalEnable() bool
func (*PlanOptimizeStrategy) IsOptimizeEnabled ¶ added in v2.2.0
func (p *PlanOptimizeStrategy) IsOptimizeEnabled(name string) bool
func (*PlanOptimizeStrategy) IsSlidingWindowSendTwiceEnable ¶ added in v2.2.0
func (p *PlanOptimizeStrategy) IsSlidingWindowSendTwiceEnable() bool
type PrintableTopo ¶
type RestartStrategy ¶
type RestartStrategy struct {
Attempts int `json:"attempts,omitempty" yaml:"attempts,omitempty"`
}
type Rule ¶
type Rule struct {
Triggered bool `json:"triggered" yaml:"triggered"`
Id string `json:"id,omitempty" yaml:"id,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"` // The display name of a rule
Version string `json:"version,omitempty" yaml:"version,omitempty"`
Temp bool `json:"temp,omitempty" yaml:"temp,omitempty"`
Sql string `json:"sql,omitempty" yaml:"sql,omitempty"`
Graph *RuleGraph `json:"graph,omitempty" yaml:"graph,omitempty"`
Actions []map[string]interface{} `json:"actions,omitempty" yaml:"actions,omitempty"`
Options *RuleOption `json:"options,omitempty" yaml:"options,omitempty"`
Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
}
Rule the definition of the business logic Sql and Graph are mutually exclusive, at least one of them should be set
func GetDefaultRule ¶
func (*Rule) GetNextScheduleStartTime ¶
func (*Rule) IsDurationRule ¶ added in v2.2.0
func (*Rule) IsScheduleRule ¶
func (*Rule) IsTagsMatch ¶ added in v2.2.0
type RuleGraph ¶
type RuleGraph struct {
Nodes map[string]*GraphNode `json:"nodes" yaml:"nodes"`
Topo *PrintableTopo `json:"topo" yaml:"topo"`
}
type RuleOption ¶
type RuleOption struct {
Debug bool `json:"debug" yaml:"debug"`
LogFilename string `json:"logFilename,omitempty" yaml:"logFilename,omitempty"`
IsEventTime bool `json:"isEventTime" yaml:"isEventTime"`
LateTol cast.DurationConf `json:"lateTolerance,omitempty" yaml:"lateTolerance,omitempty"`
Concurrency int `json:"concurrency" yaml:"concurrency"`
BufferLength int `json:"bufferLength" yaml:"bufferLength"`
SendMetaToSink bool `json:"sendMetaToSink" yaml:"sendMetaToSink"`
SendNil bool `json:"sendNilField" yaml:"sendNilField"`
SendError bool `json:"sendError" yaml:"sendError"`
Qos Qos `json:"qos,omitempty" yaml:"qos,omitempty"`
CheckpointInterval cast.DurationConf `json:"checkpointInterval,omitempty" yaml:"checkpointInterval,omitempty"`
RestartStrategy *RestartStrategy `json:"restartStrategy,omitempty" yaml:"restartStrategy,omitempty"`
Cron string `json:"cron,omitempty" yaml:"cron,omitempty"`
Duration string `json:"duration,omitempty" yaml:"duration,omitempty"`
CronDatetimeRange []schedule.DatetimeRange `json:"cronDatetimeRange,omitempty" yaml:"cronDatetimeRange,omitempty"`
PlanOptimizeStrategy *PlanOptimizeStrategy `json:"planOptimizeStrategy,omitempty" yaml:"planOptimizeStrategy,omitempty"`
NotifySub bool `json:"notifySub,omitempty" yaml:"notifySub,omitempty"`
DisableBufferFullDiscard bool `json:"disableBufferFullDiscard,omitempty" yaml:"disableBufferFullDiscard,omitempty"`
EnableSaveStateBeforeStop bool `json:"enableSaveStateBeforeStop,omitempty" yaml:"enableSaveStateBeforeStop,omitempty"`
ForceExitTimeout cast.DurationConf `json:"forceExitTimeout,omitempty" yaml:"forceExitTimeout,omitempty"`
Experiment *ExpOpts `json:"experiment,omitempty" yaml:"experiment,omitempty"`
}
type SourceMeta ¶
type SourceMeta struct {
SourceName string `json:"sourceName"` // the name of the stream or table
SourceType string `json:"sourceType"` // stream or table
}
SourceMeta is the metadata of a source node. It describes what existed stream/table to refer to. It is part of the Props in the GraphNode and it is optional
type WindowOption ¶ added in v2.2.0
Click to show internal directories.
Click to hide internal directories.