Documentation
¶
Index ¶
- Variables
- func CheckArgCount(narg int, argmin int, argmax int) error
- func HasBoolResult(name string) bool
- func New(zctx *zed.Context, name string, narg int) (expr.Function, field.Path, error)
- func TypeLength(typ zed.Type) int
- type Abs
- type Base64
- type Bucket
- type CIDRMatch
- type Ceil
- type Coalesce
- type Compare
- type Error
- type Fields
- type Flatten
- type Floor
- type Grep
- type Grok
- type Has
- type HasError
- type Hex
- type Is
- type IsErr
- type Join
- type KSUIDToString
- type Kind
- type LenFn
- type Levenshtein
- type Log
- type Missing
- type NameOf
- type NestDotted
- type NetworkOf
- type Now
- type ParseURI
- type ParseZSON
- type Pow
- type Quiet
- type Regexp
- type RegexpReplace
- type Replace
- type Round
- type RuneLen
- type Split
- type Sqrt
- type Strftime
- type ToLower
- type ToUpper
- type Trim
- type TypeOf
- type Under
- type Unflatten
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func HasBoolResult ¶
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.
func TypeLength ¶ added in v1.18.0
Types ¶
type Abs ¶
type Abs struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#abs.md
type Base64 ¶
type Base64 struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#base64
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#bucket
type CIDRMatch ¶
type CIDRMatch struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#cidr_match
type Ceil ¶
type Ceil struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#ceil
type Coalesce ¶
type Coalesce struct{}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#coalesce
type Compare ¶
type Compare struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#compare
func NewCompare ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#error
type Fields ¶
type Fields struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#fields
type Flatten ¶
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#flatten
func NewFlatten ¶
type Floor ¶
type Floor struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#floor
type Has ¶
type Has struct{}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#has
type HasError ¶
type HasError struct {
// contains filtered or unexported fields
}
func NewHasError ¶
func NewHasError() *HasError
type Hex ¶
type Hex struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#hex
type Is ¶
type Is struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#is
type IsErr ¶
type IsErr struct{}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#iserr
type Join ¶
type Join struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#join
type KSUIDToString ¶
type KSUIDToString struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#ksuid
type Kind ¶
type Kind struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#kind
type LenFn ¶
type LenFn struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#len
type Levenshtein ¶
type Levenshtein struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#levenshtein
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#log
type Missing ¶
type Missing struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#missing
type NameOf ¶
type NameOf struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#nameof
type NestDotted ¶
type NestDotted struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#nest_dotted.md
func NewNestDotted ¶
func NewNestDotted(zctx *zed.Context) *NestDotted
NewNestDotted returns a function that turns successive dotted field names into nested records. For example, unflattening {"a.a": 1, "a.b": 1} results in {a:{a:1,b:1}}. Note that while unflattening is applied recursively from the top-level and applies to arbitrary-depth dotted names, it is not applied to dotted names that start at lower levels (for example {a:{"a.a":1}} is unchanged).
type NetworkOf ¶
type NetworkOf struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#network_of
type Now ¶
type Now struct{}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#now
type ParseURI ¶
type ParseURI struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#parse_uri
type ParseZSON ¶
type ParseZSON struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#parse_zson
type Pow ¶
type Pow struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#pow
type Quiet ¶
type Quiet struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#quiet
type Regexp ¶
type Regexp struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#regexp
type RegexpReplace ¶
type RegexpReplace struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#regexp_replace
type Replace ¶
type Replace struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#replace
type Round ¶
type Round struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#round
type RuneLen ¶
type RuneLen struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#run_len
type Split ¶
type Split struct {
// contains filtered or unexported fields
}
// https://github.com/brimdata/zed/blob/main/docs/language/functions.md#split
type Sqrt ¶
type Sqrt struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#sqrt
type Strftime ¶ added in v1.18.0
type Strftime struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#strftime
type ToLower ¶
type ToLower struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#lower
type ToUpper ¶
type ToUpper struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#upper
type TypeOf ¶
type TypeOf struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#typeof
type Under ¶
type Under struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#under
type Unflatten ¶
type Unflatten struct {
// contains filtered or unexported fields
}
https://github.com/brimdata/zed/blob/main/docs/language/functions.md#unflatten