compiler

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: BSD-3-Clause Imports: 18 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func CompileWithLayout added in v1.3.0

func CompileWithLayout(pctx *op.Context, o ast.Op, r zio.Reader, layout order.Layout) (*runtime.Query, error)

XXX currently used only by group-by test, need to deprecate

func MustParse added in v1.2.0

func MustParse(query string) ast.Op

MustParse is like Parse but panics if an error is encountered.

func NewCompiler added in v1.2.0

func NewCompiler() runtime.Compiler

func NewFileSystemCompiler added in v1.2.0

func NewFileSystemCompiler(engine storage.Engine) runtime.Compiler

func NewLakeCompiler added in v1.2.0

func NewLakeCompiler(r *lake.Root) zedruntime.Compiler

func Parse added in v1.2.0

func Parse(src string, filenames ...string) (ast.Op, error)

Types

type InvalidDeleteWhereQuery added in v1.3.0

type InvalidDeleteWhereQuery struct{}

func (InvalidDeleteWhereQuery) Error added in v1.3.0

type Job added in v1.2.0

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

func NewJob added in v1.2.0

func NewJob(pctx *op.Context, inAST ast.Op, src *data.Source, head *lakeparse.Commitish) (*Job, error)

func (*Job) Build added in v1.2.0

func (j *Job) Build() error

func (*Job) Builder added in v1.2.0

func (j *Job) Builder() *kernel.Builder

func (*Job) Entry added in v1.2.0

func (j *Job) Entry() dag.Op

func (*Job) Optimize added in v1.2.0

func (j *Job) Optimize() error

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

func (*Job) Parallelize added in v1.2.0

func (j *Job) Parallelize(n int) error

func (*Job) Puller added in v1.2.0

func (j *Job) 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