shape

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BatchSize = 100
View Source
var MemMaxBytes = 128 * 1024 * 1024

Functions

This section is empty.

Types

type Proc

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

func New

func New(pctx *proc.Context, parent proc.Interface) (*Proc, error)

func (*Proc) Done

func (p *Proc) Done()

func (*Proc) Pull

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

type Shaper

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

func NewShaper

func NewShaper(zctx *zed.Context, memMaxBytes int) *Shaper

func (*Shaper) Close

func (s *Shaper) Close() error

Close removes the receiver's temporary file if it created one.

func (*Shaper) Read

func (s *Shaper) Read() (*zed.Record, error)

func (*Shaper) Write

func (s *Shaper) Write(rec *zed.Record) error

Write buffers rec. If called after Read, Write panics.

Jump to

Keyboard shortcuts

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