Documentation ¶
Index ¶
- func NewEdgeFetcher(ctx context.Context, wmStore store.WatermarkStore, ...) *edgeFetcher
- type Fetcher
- type HeadFetcher
- type Option
- type ProcessorToFetch
- func (p *ProcessorToFetch) GetEntity() entity.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
- type SourceFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEdgeFetcher ¶ added in v0.5.6
func NewEdgeFetcher(ctx context.Context, wmStore store.WatermarkStore, fromBufferPartitionCount int, opts ...Option) *edgeFetcher
NewEdgeFetcher returns a new edge fetcher. This could have been private, except that UI uses it.
Types ¶
type Fetcher ¶
type Fetcher interface { // ComputeWatermark computes a valid watermark for the given offset on the given partition ComputeWatermark(offset isb.Offset, fromPartitionIdx int32) wmb.Watermark // ComputeHeadIdleWMB computes a valid head idle WMB for the given partition. ComputeHeadIdleWMB(fromPartitionIdx int32) wmb.WMB }
Fetcher fetches watermark data from Vn-1 vertex and computes the watermark for Vn.
func NewEdgeFetcherSet ¶ added in v0.10.0
func NewEdgeFetcherSet(ctx context.Context, vertexInstance *dfv1.VertexInstance, wmStores map[string]store.WatermarkStore, opts ...Option) Fetcher
NewEdgeFetcherSet creates a new edgeFetcherSet object which implements the Fetcher interface.
type HeadFetcher ¶ added in v1.1.0
type HeadFetcher interface { // ComputeHeadWatermark computes a valid head watermark for the given partition ComputeHeadWatermark(fromPartitionIdx int32) wmb.Watermark }
HeadFetcher computes the watermark for Vn.
type Option ¶ added in v0.10.0
type Option func(options *options)
Option set options for FromVertex.
func WithIsReduce ¶ added in v0.10.0
WithIsReduce to indicate if the vertex is reduce.
func WithIsSource ¶ added in v0.10.0
WithIsSource to indicate if the vertex is source.
func WithPodHeartbeatRate ¶
WithPodHeartbeatRate sets the heartbeat rate in seconds.
func WithRefreshingProcessorsRate ¶
WithRefreshingProcessorsRate to set the rate of refreshing processors in seconds.
func WithVertexReplica ¶ added in v0.10.0
WithVertexReplica sets the vertex replica.
type ProcessorToFetch ¶ added in v0.5.3
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.5.3
func NewProcessorToFetch(ctx context.Context, processor entity.ProcessorEntitier, capacity int, fromBufferPartitionCount int32) *ProcessorToFetch
NewProcessorToFetch creates ProcessorToFetch.
func (*ProcessorToFetch) GetEntity ¶ added in v0.10.0
func (p *ProcessorToFetch) GetEntity() entity.ProcessorEntitier
GetEntity returns the processor entity.
func (*ProcessorToFetch) GetOffsetTimelines ¶ added in v0.10.0
func (p *ProcessorToFetch) GetOffsetTimelines() []*timeline.OffsetTimeline
GetOffsetTimelines returns the processor's OT.
func (*ProcessorToFetch) IsActive ¶ added in v0.5.3
func (p *ProcessorToFetch) IsActive() bool
IsActive returns whether a processor is active.
func (*ProcessorToFetch) IsDeleted ¶ added in v0.5.3
func (p *ProcessorToFetch) IsDeleted() bool
IsDeleted returns whether a processor has been deleted.
func (*ProcessorToFetch) IsInactive ¶ added in v0.5.3
func (p *ProcessorToFetch) IsInactive() bool
IsInactive returns whether a processor is inactive (no heartbeats or any sort).
func (*ProcessorToFetch) String ¶ added in v0.5.3
func (p *ProcessorToFetch) String() string
type SourceFetcher ¶ added in v1.1.0
type SourceFetcher interface { // ComputeWatermark computes the watermark, it will return the minimum of all the watermarks of the processors. ComputeWatermark() wmb.Watermark HeadFetcher }
SourceFetcher fetches watermark data for source vertex.
func NewSourceFetcher ¶ added in v0.5.6
func NewSourceFetcher(ctx context.Context, store store.WatermarkStore, opts ...Option) SourceFetcher
NewSourceFetcher returns a new source fetcher, pm has the details about the processors responsible for writing to the buckets of the source buffer.