reduce

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package reduce reads messages from isb attaches watermark to read messages invoke the read-loop with the read messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataForward

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

DataForward reads data from isb and forwards them to readloop

func NewDataForward

func NewDataForward(ctx context.Context,
	udf applier.ReduceApplier,
	vertexInstance *dfv1.VertexInstance,
	fromBuffer isb.BufferReader,
	toBuffers map[string]isb.BufferWriter,
	pbqManager *pbq.Manager,
	whereToDecider forward.ToWhichStepDecider,
	fw fetch.Fetcher,
	watermarkPublishers map[string]publish.Publisher,
	windowingStrategy window.Windower,
	opts ...Option) (*DataForward, error)

func (*DataForward) Start

func (d *DataForward) Start(ctx context.Context)

Start starts forwarding messages to readloop

type Option

type Option func(*Options) error

func WithReadBatchSize

func WithReadBatchSize(f int64) Option

WithReadBatchSize sets the read batch size

type Options

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

Options for forwarding the message

func DefaultOptions

func DefaultOptions() *Options

Directories

Path Synopsis
Package pnf processes and then forwards messages belonging to a window.
Package pnf processes and then forwards messages belonging to a window.
Package readloop is responsible for the first part of reduce subsystem.
Package readloop is responsible for the first part of reduce subsystem.

Jump to

Keyboard shortcuts

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