merge

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 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 added in v1.7.0

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 added in v1.7.0

func (o *Op) Len() int

func (*Op) Less added in v1.7.0

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

func (*Op) Pop added in v1.7.0

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

func (*Op) Pull added in v1.7.0

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

func (*Op) Push added in v1.7.0

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

func (*Op) Read added in v1.7.0

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

func (*Op) Swap added in v1.7.0

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