Documentation
¶
Index ¶
- Constants
- func ArithOpFromString(op string) int
- func BoolValue(vec Any, slot uint32) bool
- func BytesValue(val Any, slot uint32) ([]byte, bool)
- func CompareOpFromString(op string) int
- func ContainerOffset(val Any, slot uint32) (uint32, uint32, bool)
- func FuncCode(op int, kind Kind, lform, rform Form) int
- func IPValue(val Any, slot uint32) (netip.Addr, bool)
- func IntValue(vec Any, slot uint32) (int64, bool)
- func NetValue(val Any, slot uint32) (netip.Prefix, bool)
- func StringValue(val Any, slot uint32) (string, bool)
- func TypeValueValue(val Any, slot uint32) ([]byte, bool)
- type Any
- type Array
- type Bool
- type Builder
- type Bytes
- type Const
- func (c *Const) AsBytes() ([]byte, bool)
- func (c *Const) AsFloat() (float64, bool)
- func (c *Const) AsInt() (int64, bool)
- func (c *Const) AsString() (string, bool)
- func (c *Const) AsUint() (uint64, bool)
- func (c *Const) Len() uint32
- func (c *Const) Length() int
- func (*Const) Ref()
- func (c *Const) Serialize(b *zcode.Builder, slot uint32)
- func (c *Const) Type() zed.Type
- func (*Const) Unref()
- func (c *Const) Value() zed.Value
- type Dict
- type Error
- type Float
- type Form
- type IP
- type Int
- type Kind
- type Map
- type Named
- type Net
- type Promotable
- type Puller
- type Record
- type Set
- type String
- type TagMap
- type TypeValue
- type Uint
- type Union
- type Variant
- type View
Constants ¶
View Source
const ( KindInvalid = 0 KindInt = 1 KindUint = 2 KindFloat = 3 KindString = 4 KindBytes = 5 KindType = 6 )
View Source
const ( FormFlat = 0 FormDict = 1 FormView = 2 FormConst = 3 )
View Source
const ( CompLT = 0 CompLE = 1 CompGT = 2 CompGE = 3 CompEQ = 4 CompNE = 6 )
View Source
const ( ArithAdd = iota ArithSub ArithMul ArithDiv ArithMod )
Variables ¶
This section is empty.
Functions ¶
func ArithOpFromString ¶ added in v1.17.0
func BoolValue ¶ added in v1.18.0
BoolValue returns the value of slot in vec if the value is a Boolean. It returns false otherwise.
func CompareOpFromString ¶ added in v1.16.0
func ContainerOffset ¶ added in v1.18.0
Types ¶
type Any ¶ added in v1.12.0
type Bool ¶ added in v1.12.0
func NewBoolEmpty ¶ added in v1.13.0
func (*Bool) CopyWithBits ¶ added in v1.14.0
type Bytes ¶ added in v1.13.0
func NewBytesEmpty ¶ added in v1.18.0
type Const ¶ added in v1.12.0
type Const struct {
Nulls *Bool
// contains filtered or unexported fields
}
type Error ¶ added in v1.13.0
func NewError ¶ added in v1.13.0
XXX we shouldn't create empty fields... this was the old design, now we create the entire vector structure and page in leaves, offsets, etc on demand
func NewStringError ¶ added in v1.14.0
func NewWrappedError ¶ added in v1.18.0
type Float ¶ added in v1.13.0
func NewFloatEmpty ¶ added in v1.17.0
type Kind ¶ added in v1.16.0
type Kind int
func KindFromString ¶ added in v1.16.0
func KindOfType ¶ added in v1.16.0
type Promotable ¶ added in v1.16.0
type Promotable interface {
Any
Promote(zed.Type) Promotable
}
type Record ¶ added in v1.12.0
type Record struct {
Typ *zed.TypeRecord
Fields []Any
Nulls *Bool
// contains filtered or unexported fields
}
type String ¶ added in v1.12.0
func NewStringEmpty ¶ added in v1.17.0
type TagMap ¶ added in v1.13.0
TagMap is used by variants and unions to map slots between parent and child in both the forward and reverse directions. We need this because vectors are stored in a dense format where different types hold only the values needed for that type. If we stored vectors in a sparse format, the amount of overhead would increase substantially for heterogeneously typed data.
func NewTagMapFromLens ¶ added in v1.13.0
type TypeValue ¶ added in v1.13.0
func NewTypeValue ¶ added in v1.13.0
type Uint ¶ added in v1.12.0
func NewUintEmpty ¶ added in v1.17.0
Click to show internal directories.
Click to hide internal directories.