fuse

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: BSD-3-Clause Imports: 7 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 Fuser

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

Fuser buffers records written to it, assembling from them a unified schema of fields and types. Fuser then transforms those records to the unified schema as they are read back from it.

func NewFuser

func NewFuser(zctx *zed.Context, memMaxBytes int) *Fuser

NewFuser returns a new Fuser. The Fuser buffers records in memory until their cumulative size (measured in zcode.Bytes length) exceeds memMaxBytes, at which point it buffers them in a temporary file.

func (*Fuser) Close

func (f *Fuser) Close() error

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

func (*Fuser) Read

func (f *Fuser) Read() (*zed.Value, error)

Read returns the next buffered record after transforming it to the unified schema.

func (*Fuser) Write

func (f *Fuser) Write(rec *zed.Value) error

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

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)

Jump to

Keyboard shortcuts

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