pnf

package
v0.9.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package pnf processes and then forwards messages belonging to a window. It reads the data from PBQ (which is populated by the `data forwarder`), calls the UDF reduce function, and then forwards to the next ISB. After a successful forward, it invokes `GC` to clean up the PBQ. Since pnf is a reducer, it mutates the watermark. The watermark after the pnf will be the end time of the window.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForwardTask added in v0.8.1

type ForwardTask struct {
	// contains filtered or unexported fields
}

ForwardTask wraps the `processAndForward`.

type OrderedProcessor added in v0.8.1

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

OrderedProcessor orders the forwarding of the writeMessages of the execution of the tasks, even though the tasks itself are run concurrently in an out of ordered fashion.

func NewOrderedProcessor added in v0.8.1

func NewOrderedProcessor(ctx context.Context,
	vertexInstance *dfv1.VertexInstance,
	udf applier.ReduceApplier,
	toBuffers map[string][]isb.BufferWriter,
	pbqManager *pbq.Manager,
	whereToDecider forward.ToWhichStepDecider,
	watermarkPublishers map[string]publish.Publisher,
	idleManager *wmb.IdleManager) *OrderedProcessor

NewOrderedProcessor returns an OrderedProcessor.

func (*OrderedProcessor) InsertTask added in v0.8.1

func (op *OrderedProcessor) InsertTask(t *ForwardTask)

func (*OrderedProcessor) SchedulePnF added in v0.8.1

func (op *OrderedProcessor) SchedulePnF(
	ctx context.Context,
	partitionID partition.ID) *ForwardTask

SchedulePnF creates and schedules the PnF routine.

func (*OrderedProcessor) Shutdown added in v0.8.1

func (op *OrderedProcessor) 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