Documentation ¶
Overview ¶
Package processor is the smallest processor entity for which the watermark will strictly monotonically increase.
Index ¶
- type ProcessorEntitier
- type ProcessorHeartbeat
- type ProcessorManager
- type ProcessorManagerOption
- func WithIsReduce(isReduce bool) ProcessorManagerOption
- func WithIsSource(isSource bool) ProcessorManagerOption
- func WithPodHeartbeatRate(rate int64) ProcessorManagerOption
- func WithRefreshingProcessorsRate(rate int64) ProcessorManagerOption
- func WithVertexReplica(replica int32) ProcessorManagerOption
- type ProcessorToFetch
- func (p *ProcessorToFetch) GetEntity() ProcessorEntitier
- func (p *ProcessorToFetch) GetOffsetTimelines() []*timeline.OffsetTimeline
- func (p *ProcessorToFetch) IsActive() bool
- func (p *ProcessorToFetch) IsDeleted() bool
- func (p *ProcessorToFetch) IsInactive() bool
- func (p *ProcessorToFetch) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorEntitier ¶
type ProcessorEntitier interface {
GetName() string
}
ProcessorEntitier defines what can be a processor. The Processor is the smallest unit where the watermark will monotonically increase.
func NewProcessorEntity ¶
func NewProcessorEntity(name string) ProcessorEntitier
NewProcessorEntity returns a new `ProcessorEntitier`.
type ProcessorHeartbeat ¶ added in v0.8.1
type ProcessorHeartbeat struct {
// contains filtered or unexported fields
}
ProcessorHeartbeat has details about each processor heartbeat. This information is populated by watching the Vn-1th vertex's processors. It stores only the latest heartbeat value.
func NewProcessorHeartbeat ¶ added in v0.8.1
func NewProcessorHeartbeat() *ProcessorHeartbeat
NewProcessorHeartbeat returns ProcessorHeartbeat.
func (*ProcessorHeartbeat) Delete ¶ added in v0.8.1
func (hb *ProcessorHeartbeat) Delete(key string)
Delete deletes a processor from the ProcessorHeartbeat table.
func (*ProcessorHeartbeat) Get ¶ added in v0.8.1
func (hb *ProcessorHeartbeat) Get(key string) int64
Get gets the heartbeat for a given processor.
func (*ProcessorHeartbeat) GetAll ¶ added in v0.8.1
func (hb *ProcessorHeartbeat) GetAll() map[string]int64
GetAll returns all the heartbeat entries in the heartbeat table.
func (*ProcessorHeartbeat) Put ¶ added in v0.8.1
func (hb *ProcessorHeartbeat) Put(key string, value int64)
Put inserts a heartbeat entry for a given processor key and value.
type ProcessorManager ¶ added in v0.8.1
type ProcessorManager struct {
// contains filtered or unexported fields
}
ProcessorManager manages the point of view of Vn-1 from Vn vertex processors (or source processor). The code is running on Vn vertex. It has the mapping of all the processors which in turn has all the information about each processor timelines.
func NewProcessorManager ¶ added in v0.8.1
func NewProcessorManager(ctx context.Context, watermarkStoreWatcher store.WatermarkStoreWatcher, fromBufferPartitionCount int32, inputOpts ...ProcessorManagerOption) *ProcessorManager
NewProcessorManager returns a new ProcessorManager instance
func (*ProcessorManager) AddProcessor ¶ added in v0.8.1
func (v *ProcessorManager) AddProcessor(processor string, p *ProcessorToFetch)
AddProcessor adds a new processor. If the given processor already exists, the value will be updated.
func (*ProcessorManager) DeleteProcessor ¶ added in v0.8.1
func (v *ProcessorManager) DeleteProcessor(processor string)
DeleteProcessor deletes a processor.
func (*ProcessorManager) GetAllProcessors ¶ added in v0.8.1
func (v *ProcessorManager) GetAllProcessors() map[string]*ProcessorToFetch
GetAllProcessors returns all the processors.
func (*ProcessorManager) GetProcessor ¶ added in v0.8.1
func (v *ProcessorManager) GetProcessor(processor string) *ProcessorToFetch
GetProcessor gets a processor.
type ProcessorManagerOption ¶ added in v0.8.1
type ProcessorManagerOption func(*processorManagerOptions)
ProcessorManagerOption set options for FromVertex.
func WithIsReduce ¶ added in v0.8.1
func WithIsReduce(isReduce bool) ProcessorManagerOption
WithIsReduce sets the processor manager is for reduce.
func WithIsSource ¶ added in v0.9.0
func WithIsSource(isSource bool) ProcessorManagerOption
WithIsSource sets the vertex is source.
func WithPodHeartbeatRate ¶ added in v0.8.1
func WithPodHeartbeatRate(rate int64) ProcessorManagerOption
WithPodHeartbeatRate sets the heartbeat rate in seconds.
func WithRefreshingProcessorsRate ¶ added in v0.8.1
func WithRefreshingProcessorsRate(rate int64) ProcessorManagerOption
WithRefreshingProcessorsRate sets the processor refreshing rate in seconds.
func WithVertexReplica ¶ added in v0.8.1
func WithVertexReplica(replica int32) ProcessorManagerOption
WithVertexReplica sets the vertex replica.
type ProcessorToFetch ¶ added in v0.8.1
type ProcessorToFetch struct {
// contains filtered or unexported fields
}
ProcessorToFetch is the smallest unit of entity (from which we fetch data) that does inorder processing or contains inorder data. It tracks OT for all the partitions of the from buffer.
func NewProcessorToFetch ¶ added in v0.8.1
func NewProcessorToFetch(ctx context.Context, processor ProcessorEntitier, capacity int, fromBufferPartitionCount int32) *ProcessorToFetch
NewProcessorToFetch creates ProcessorToFetch.
func (*ProcessorToFetch) GetEntity ¶ added in v0.8.1
func (p *ProcessorToFetch) GetEntity() ProcessorEntitier
GetEntity returns the processor entity.
func (*ProcessorToFetch) GetOffsetTimelines ¶ added in v0.9.0
func (p *ProcessorToFetch) GetOffsetTimelines() []*timeline.OffsetTimeline
GetOffsetTimelines returns the processor's OT.
func (*ProcessorToFetch) IsActive ¶ added in v0.8.1
func (p *ProcessorToFetch) IsActive() bool
IsActive returns whether a processor is active.
func (*ProcessorToFetch) IsDeleted ¶ added in v0.8.1
func (p *ProcessorToFetch) IsDeleted() bool
IsDeleted returns whether a processor has been deleted.
func (*ProcessorToFetch) IsInactive ¶ added in v0.8.1
func (p *ProcessorToFetch) IsInactive() bool
IsInactive returns whether a processor is inactive (no heartbeats or any sort).
func (*ProcessorToFetch) String ¶ added in v0.8.1
func (p *ProcessorToFetch) String() string