compiler

package
v0.34.0-test1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: BSD-3-Clause Imports: 20 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Parallelism = runtime.GOMAXPROCS(0) //XXX

Functions

func CompileAssignments

func CompileAssignments(zctx *zed.Context, dsts field.List, srcs field.List) (field.List, []expr.Evaluator)

func MustParseProc

func MustParseProc(query string) ast.Proc

MustParseProc is functionally the same as ParseProc but panics if an error is encountered.

func ParseExpression

func ParseExpression(expr string) (ast.Expr, error)

func ParseProc

func ParseProc(src string, filenames ...string) (ast.Proc, error)

ParseProc() is an entry point for use from external go code, mostly just a wrapper around Parse() that casts the return value.

Types

type Runtime

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

func CompileForFileSystem

func CompileForFileSystem(pctx *op.Context, p ast.Proc, readers []zio.Reader, adaptor op.DataAdaptor) (*Runtime, error)

func CompileForInternal

func CompileForInternal(pctx *op.Context, p ast.Proc, r zio.Reader) (*Runtime, error)

func CompileForInternalWithOrder

func CompileForInternalWithOrder(pctx *op.Context, p ast.Proc, r zio.Reader, layout order.Layout) (*Runtime, error)

func CompileForLake

func CompileForLake(pctx *op.Context, program ast.Proc, lake op.DataAdaptor, parallelism int, head *lakeparse.Commitish) (*Runtime, error)

func New

func New(pctx *op.Context, inAST ast.Proc, adaptor op.DataAdaptor, head *lakeparse.Commitish) (*Runtime, error)

func (*Runtime) Build

func (r *Runtime) Build() error

func (*Runtime) Builder

func (r *Runtime) Builder() *kernel.Builder

func (*Runtime) Context

func (r *Runtime) Context() *op.Context

func (*Runtime) Entry

func (r *Runtime) Entry() dag.Op

func (*Runtime) Meter added in v1.0.0

func (r *Runtime) Meter() zbuf.Meter

func (*Runtime) Optimize

func (r *Runtime) Optimize() error

This must be called before the zbuf.Filter interface will work.

func (*Runtime) Outputs

func (r *Runtime) Outputs() []zbuf.Puller

func (*Runtime) Parallelize

func (r *Runtime) Parallelize(n int) error

func (*Runtime) Puller

func (r *Runtime) Puller() zbuf.Puller

Directories

Path Synopsis
ast
Package ast declares the types used to represent syntax trees for Zed queries.
Package ast declares the types used to represent syntax trees for Zed queries.
dag
zed

Jump to

Keyboard shortcuts

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