top

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proc

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

Top is similar to proc.Sort with a view key differences: - It only sorts in descending order. - It utilizes a MaxHeap, immediately discarding records that are not in the top N of the sort. - It has a hidden option (FlushEvery) to sort and emit on every batch.

func New

func New(parent proc.Interface, limit int, fields []expr.Evaluator, flushEvery bool) *Proc

func (*Proc) Done

func (p *Proc) Done()

func (*Proc) Pull

func (p *Proc) Pull() (zbuf.Batch, error)

Jump to

Keyboard shortcuts

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