compiler

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: 21 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func CompileAssignments

func CompileAssignments(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 *proc.Context, p ast.Proc, reader zio.Reader, adaptor proc.DataAdaptor) (*Runtime, error)

func CompileForInternal

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

func CompileForInternalWithOrder

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

func CompileForLake

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

func CompileJoinForFileSystem

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

func New

func New(pctx *proc.Context, inAST ast.Proc, adaptor proc.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() *proc.Context

func (*Runtime) Entry

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

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() []proc.Interface

func (*Runtime) Parallelize

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

func (*Runtime) Puller

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

func (*Runtime) Statser

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

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