Documentation ¶
Index ¶
- func RemoveSubTopo(name string)
- type SrcSubTopo
- func (s *SrcSubTopo) AddOperator(inputs []api.Emitter, operator node.OperatorNode) *SrcSubTopo
- func (s *SrcSubTopo) AddOutput(output chan<- interface{}, name string) error
- func (s *SrcSubTopo) AddSrc(src node.DataSourceNode) *SrcSubTopo
- func (s *SrcSubTopo) Close(ruleId string)
- func (s *SrcSubTopo) EnableCheckpoint(sources *[]checkpoint.StreamTask, ops *[]checkpoint.NonSourceTask)
- func (s *SrcSubTopo) GetMetrics() []any
- func (s *SrcSubTopo) GetName() string
- func (s *SrcSubTopo) GetSource() node.DataSourceNode
- func (s *SrcSubTopo) LinkTopo(parentTopo *api.PrintableTopo, parentJointName string)
- func (s *SrcSubTopo) MergeSrc(parentTopo *api.PrintableTopo)
- func (s *SrcSubTopo) Open(ctx api.StreamContext, parentErrCh chan<- error)
- func (s *SrcSubTopo) OpsCount() int
- func (s *SrcSubTopo) RemoveMetrics(ruleId string)
- func (s *SrcSubTopo) StoreSchema(ruleID, dataSource string, schema map[string]*ast.JsonStreamField, ...)
- func (s *SrcSubTopo) SubMetrics() (keys []string, values []any)
- type Topo
- func (s *Topo) AddOperator(inputs []api.Emitter, operator node.OperatorNode) *Topo
- func (s *Topo) AddSink(inputs []api.Emitter, snk *node.SinkNode) *Topo
- func (s *Topo) AddSrc(src node.DataSourceNode) *Topo
- func (s *Topo) Cancel()
- func (s *Topo) GetContext() api.StreamContext
- func (s *Topo) GetCoordinator() *checkpoint.Coordinator
- func (s *Topo) GetMetrics() (keys []string, values []any)
- func (s *Topo) GetName() string
- func (s *Topo) GetTopo() *api.PrintableTopo
- func (s *Topo) HasOpen() bool
- func (s *Topo) NewTopoWithSucceededCtx() *Topo
- func (s *Topo) Open() <-chan error
- func (s *Topo) RemoveMetrics()
- func (s *Topo) ResetStreamOffset(name string, input map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveSubTopo ¶
func RemoveSubTopo(name string)
Types ¶
type SrcSubTopo ¶
type SrcSubTopo struct {
// contains filtered or unexported fields
}
SrcSubTopo Implements node.SourceNode
func GetSubTopo ¶
func GetSubTopo(name string) (*SrcSubTopo, bool)
func (*SrcSubTopo) AddOperator ¶
func (s *SrcSubTopo) AddOperator(inputs []api.Emitter, operator node.OperatorNode) *SrcSubTopo
AddOperator adds an internal operator to the subtopo.
func (*SrcSubTopo) AddOutput ¶
func (s *SrcSubTopo) AddOutput(output chan<- interface{}, name string) error
func (*SrcSubTopo) AddSrc ¶
func (s *SrcSubTopo) AddSrc(src node.DataSourceNode) *SrcSubTopo
func (*SrcSubTopo) Close ¶
func (s *SrcSubTopo) Close(ruleId string)
func (*SrcSubTopo) EnableCheckpoint ¶
func (s *SrcSubTopo) EnableCheckpoint(sources *[]checkpoint.StreamTask, ops *[]checkpoint.NonSourceTask)
func (*SrcSubTopo) GetMetrics ¶
func (s *SrcSubTopo) GetMetrics() []any
func (*SrcSubTopo) GetName ¶
func (s *SrcSubTopo) GetName() string
func (*SrcSubTopo) GetSource ¶
func (s *SrcSubTopo) GetSource() node.DataSourceNode
func (*SrcSubTopo) LinkTopo ¶
func (s *SrcSubTopo) LinkTopo(parentTopo *api.PrintableTopo, parentJointName string)
func (*SrcSubTopo) MergeSrc ¶
func (s *SrcSubTopo) MergeSrc(parentTopo *api.PrintableTopo)
func (*SrcSubTopo) Open ¶
func (s *SrcSubTopo) Open(ctx api.StreamContext, parentErrCh chan<- error)
func (*SrcSubTopo) OpsCount ¶
func (s *SrcSubTopo) OpsCount() int
func (*SrcSubTopo) RemoveMetrics ¶
func (s *SrcSubTopo) RemoveMetrics(ruleId string)
RemoveMetrics is called when the rule is deleted
func (*SrcSubTopo) StoreSchema ¶
func (s *SrcSubTopo) StoreSchema(ruleID, dataSource string, schema map[string]*ast.JsonStreamField, isWildCard bool)
func (*SrcSubTopo) SubMetrics ¶
func (s *SrcSubTopo) SubMetrics() (keys []string, values []any)
type Topo ¶
type Topo struct {
// contains filtered or unexported fields
}
func NewWithNameAndOptions ¶
func NewWithNameAndOptions(name string, options *api.RuleOption) (*Topo, error)
func (*Topo) AddOperator ¶
func (*Topo) Cancel ¶
func (s *Topo) Cancel()
Cancel may be called multiple times so must be idempotent
func (*Topo) GetContext ¶
func (s *Topo) GetContext() api.StreamContext
func (*Topo) GetCoordinator ¶
func (s *Topo) GetCoordinator() *checkpoint.Coordinator
func (*Topo) GetMetrics ¶
func (*Topo) GetTopo ¶
func (s *Topo) GetTopo() *api.PrintableTopo
func (*Topo) NewTopoWithSucceededCtx ¶
func (*Topo) RemoveMetrics ¶
func (s *Topo) RemoveMetrics()
Click to show internal directories.
Click to hide internal directories.