merge

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Op

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

Proc merges multiple upstream Pullers into one downstream Puller. If the input streams are ordered according to the configured comparison, the output of Merger will have the same order. Each parent puller is run in its own goroutine so that deadlock is avoided when the upstream pullers would otherwise block waiting for an adjacent puller to finish but the Merger is waiting on the upstream puller.

func New

func New(ctx context.Context, parents []zbuf.Puller, cmp expr.CompareFn) *Op

func (*Op) Len

func (o *Op) Len() int

func (*Op) Less

func (o *Op) Less(i, j int) bool

func (*Op) Pop

func (o *Op) Pop() interface{}

func (*Op) Pull

func (o *Op) Pull(done bool) (zbuf.Batch, error)

func (*Op) Push

func (o *Op) Push(x interface{})

func (*Op) Read

func (o *Op) Read() (*zed.Value, error)

func (*Op) Swap

func (o *Op) Swap(i, j int)

Jump to

Keyboard shortcuts

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