Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublishIdleWatermark ¶
func PublishIdleWatermark(ctx context.Context, fromBufferPartitionIndex int32, toBufferPartition isb.BufferWriter, wmPublisher publish.Publisher, idleManager wmb.IdleManager, logger *zap.SugaredLogger, vertexName string, pipelineName string, vertexType dfv1.VertexType, vertexReplica int32, wm wmb.Watermark)
PublishIdleWatermark publishes a ctrl message with isb.Kind set to WMB. We only send one ctrl message when
Types ¶
type SourceIdleHandler ¶ added in v1.1.0
type SourceIdleHandler struct {
// contains filtered or unexported fields
}
SourceIdleHandler handles operations related to idle watermarks for source.
func NewSourceIdleHandler ¶ added in v1.1.0
func NewSourceIdleHandler(config *dfv1.Watermark, fetcher fetch.SourceFetcher, publisher publish.SourcePublisher) *SourceIdleHandler
NewSourceIdleHandler creates a new instance of SrcIdleHandler.
func (*SourceIdleHandler) IsSourceIdling ¶ added in v1.1.0
func (iw *SourceIdleHandler) IsSourceIdling() bool
IsSourceIdling will return true if source has been idling and the step interval has passed.
func (*SourceIdleHandler) PublishSourceIdleWatermark ¶ added in v1.1.0
func (iw *SourceIdleHandler) PublishSourceIdleWatermark(partitions []int32)
PublishSourceIdleWatermark publishes an idle watermark.
func (*SourceIdleHandler) Reset ¶ added in v1.1.0
func (iw *SourceIdleHandler) Reset()
Reset resets the updatedTS to the current time.
Click to show internal directories.
Click to hide internal directories.