pnf

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

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

func WithBatchSize(batchSize int) Option

WithBatchSize sets the batch size for forwarding messages to ISB.

func WithFlushDuration added in v1.2.0

func WithFlushDuration(flushDuration time.Duration) Option

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

func WithWindowType(windowType window.Type) Option

WithWindowType sets the window type option

type ProcessAndForward

type ProcessAndForward struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL