Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v1.2.0
type Option func(options *options) error
func WithBatchSize ¶ added in v1.2.0
WithBatchSize sets the batch size for forwarding messages to ISB.
func WithFlushDuration ¶ added in v1.2.0
WithFlushDuration sets the flush duration for forwarding messages to ISB.
func WithGCEventsTracker ¶ added in v1.2.0
func WithGCEventsTracker(gcTracker unaligned.GCEventsWAL) Option
WithGCEventsTracker sets the GCEventsWAL option
func WithWindowType ¶ added in v1.2.0
WithWindowType sets the window type option
type ProcessAndForward ¶
ProcessAndForward invokes the UDF for each partition separately in a go routine and writes the response to the ISBs. It also publishes the watermark and invokes GC on PBQ.
func NewProcessAndForward ¶
func NewProcessAndForward(ctx context.Context, vertexInstance *dfv1.VertexInstance, udf applier.ReduceApplier, toBuffers map[string][]isb.BufferWriter, pbqManager *pbq.Manager, whereToDecider forwarder.ToWhichStepDecider, watermarkPublishers map[string]publish.Publisher, idleManager wmb.IdleManager, windower window.TimedWindower, opts ...Option) *ProcessAndForward
NewProcessAndForward returns a new ProcessAndForward.
func (*ProcessAndForward) AsyncSchedulePnF ¶ added in v1.2.0
func (pf *ProcessAndForward) AsyncSchedulePnF(ctx context.Context, partitionID *partition.ID, pbq pbq.Reader)
AsyncSchedulePnF creates a go routine for each partition to invoke the UDF. does not maintain the order of execution between partitions.
func (*ProcessAndForward) Shutdown ¶ added in v1.2.0
func (pf *ProcessAndForward) Shutdown()
Shutdown closes all the partitions of the buffer.