runtime

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: BSD-3-Clause Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler added in v1.2.0

type Compiler interface {
	NewQuery(*op.Context, ast.Op, []zio.Reader) (*Query, error)
	NewLakeQuery(*op.Context, ast.Op, int, *lakeparse.Commitish) (*Query, error)
	Parse(string, ...string) (ast.Op, error)
	ParseRangeExpr(*zed.Context, string, order.Layout) (*zed.Value, string, error)
	//XXX this is used only by the groupby test.
	CompileWithOrderDeprecated(*op.Context, ast.Op, zio.Reader, order.Layout) (*Query, error)
}

type Query

type Query struct {
	zbuf.Puller
	// contains filtered or unexported fields
}

Query runs a flowgraph as a zbuf.Puller and implements a Close() method that gracefully tears down the flowgraph. Its AsReader() and AsProgressReader() methods provide a convenient means to run a flowgraph as zio.Reader.

func CompileLakeQuery added in v1.2.0

func CompileLakeQuery(ctx context.Context, zctx *zed.Context, c Compiler, program ast.Op, head *lakeparse.Commitish, logger *zap.Logger) (*Query, error)

func CompileQuery added in v1.2.0

func CompileQuery(ctx context.Context, zctx *zed.Context, c Compiler, program ast.Op, readers []zio.Reader) (*Query, error)

func NewQuery

func NewQuery(pctx *op.Context, puller zbuf.Puller, meters []zbuf.Meter) *Query

func (*Query) AsProgressReadCloser

func (q *Query) AsProgressReadCloser() zbuf.ProgressReadCloser

func (*Query) AsReader

func (q *Query) AsReader() zio.Reader

func (*Query) Close

func (q *Query) Close() error

func (*Query) Meter

func (q *Query) Meter() zbuf.Meter

func (*Query) Progress

func (q *Query) Progress() zbuf.Progress

func (*Query) Pull

func (q *Query) Pull(done bool) (zbuf.Batch, error)

Directories

Path Synopsis
agg
op
combine
A combine proc merges multiple upstream inputs into one output.
A combine proc merges multiple upstream inputs into one output.
top

Jump to

Keyboard shortcuts

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