Documentation
¶
Index ¶
- func EvalBool(zctx *zed.Context, val vector.Any, e Evaluator) (vector.Any, bool)
- func ToBool(val zed.Value) (bool, bool)
- func ToFloat(val zed.Value) (float64, bool)
- func ToInt(val zed.Value) (int64, bool)
- func ToUint(val zed.Value) (uint64, bool)
- type And
- type Arith
- type Call
- type Compare
- type DotExpr
- type Evaluator
- type Function
- type Index
- type Literal
- type Not
- type Or
- type Putter
- type RecordElem
- type Renamer
- type This
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type And ¶ added in v1.14.0
type And struct {
// contains filtered or unexported fields
}
func NewLogicalAnd ¶ added in v1.14.0
type Arith ¶ added in v1.17.0
type Arith struct {
// contains filtered or unexported fields
}
type Compare ¶ added in v1.14.0
type Compare struct {
// contains filtered or unexported fields
}
func NewCompare ¶ added in v1.14.0
type Evaluator ¶
func NewIndexExpr ¶ added in v1.18.0
func NewRecordExpr ¶ added in v1.18.0
func NewRecordExpr(zctx *zed.Context, elems []RecordElem) Evaluator
type Index ¶ added in v1.18.0
type Index struct {
// contains filtered or unexported fields
}
Index represents an index operator "container[index]" where container is either an array or set (with index type integer), or a record (with index type string), or a map (with any index type).
type Literal ¶ added in v1.14.0
type Literal struct {
// contains filtered or unexported fields
}
func NewLiteral ¶ added in v1.14.0
type Putter ¶ added in v1.18.0
type Putter struct {
// contains filtered or unexported fields
}
Putter adapts the behavior of recordExpr (obtained from NewRecordExpr) to match that of the put operator, which emits an error when an input value is not a record.
type RecordElem ¶ added in v1.18.0
type Renamer ¶ added in v1.18.0
type Renamer struct {
// contains filtered or unexported fields
}
Renamer renames one or more fields in a record. See expr.Renamer, on which it relies, for more detail.
func NewRenamer ¶ added in v1.18.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.