function

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadArgument    = errors.New("bad argument")
	ErrNoSuchFunction = errors.New("no such function")
	ErrTooFewArgs     = errors.New("too few arguments")
	ErrTooManyArgs    = errors.New("too many arguments")
)

Functions

func HasBoolResult

func HasBoolResult(name string) bool

HasBoolResult returns true if the function name returns a Boolean value. XXX This is a hack so the semantic compiler can determine if a single call expr is a Filter or Put proc. At some point function declarations should have signatures so the return type can be introspected.

Types

type Abs

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#abs.md

func (*Abs) Call

func (a *Abs) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Base64

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#base64

func (*Base64) Call

func (b *Base64) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Bucket

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#bucket

func (*Bucket) Call

func (b *Bucket) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

func (*Bucket) String

func (b *Bucket) String() string

type Ceil

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#ceil

func (*Ceil) Call

func (c *Ceil) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Error

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#error

func (*Error) Call

func (e *Error) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Fields

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#fields

func NewFields

func NewFields(zctx *zed.Context) *Fields

func (*Fields) Call

func (f *Fields) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Flatten

type Flatten struct {
	zcode.Builder
	// contains filtered or unexported fields
}

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#flatten

func NewFlatten

func NewFlatten(zctx *zed.Context) *Flatten

func (*Flatten) Call

func (n *Flatten) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Floor

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#floor

func (*Floor) Call

func (f *Floor) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Hex

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#hex

func (*Hex) Call

func (h *Hex) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Interface

type Interface interface {
	Call(zed.Allocator, []zed.Value) *zed.Value
}

func New

func New(zctx *zed.Context, name string, narg int) (Interface, field.Path, error)

type Is

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#is

func (*Is) Call

func (i *Is) Call(_ zed.Allocator, args []zed.Value) *zed.Value

type Join

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#join

func (*Join) Call

func (j *Join) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type KSUIDToString

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#ksuid

func (*KSUIDToString) Call

func (k *KSUIDToString) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Kind

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#kind

func (*Kind) Call

func (k *Kind) Call(ectx zed.Allocator, args []zed.Value) *zed.Value

type LenFn

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#len

func (*LenFn) Call

func (l *LenFn) Call(ectx zed.Allocator, args []zed.Value) *zed.Value

type Log

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#log

func (*Log) Call

func (l *Log) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type NameOf

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#nameof

func (*NameOf) Call

func (n *NameOf) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type NetworkOf

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#network_of

func (*NetworkOf) Call

func (n *NetworkOf) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type ParseURI

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#parse_uri

func (*ParseURI) Call

func (p *ParseURI) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type ParseZSON

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#parse_zson

func (*ParseZSON) Call

func (p *ParseZSON) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Pow

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#pow

func (*Pow) Call

func (p *Pow) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Quiet

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#quiet

func (*Quiet) Call

func (q *Quiet) Call(_ zed.Allocator, args []zed.Value) *zed.Value

type Replace

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#replace

func (*Replace) Call

func (r *Replace) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Round

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#round

func (*Round) Call

func (r *Round) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type RuneLen

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#run_len

func (*RuneLen) Call

func (r *RuneLen) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Split

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

// https://github.com/brimdata/zed/blob/main/docs/language/functions.md#split

func (*Split) Call

func (s *Split) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Sqrt

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#sqrt

func (*Sqrt) Call

func (s *Sqrt) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type ToLower

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#to_lower

func (*ToLower) Call

func (t *ToLower) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type ToUpper

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#to_upper

func (*ToUpper) Call

func (t *ToUpper) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Trim

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

type TypeOf

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#typeof

func (*TypeOf) Call

func (t *TypeOf) Call(ctx zed.Allocator, args []zed.Value) *zed.Value

type Under

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

https://github.com/brimdata/zed/blob/main/docs/language/functions.md#under

func (*Under) Call

func (u *Under) Call(ectx zed.Allocator, args []zed.Value) *zed.Value

Jump to

Keyboard shortcuts

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