Documentation
¶
Index ¶
- Constants
- func CompareOpCode(op string, kind Kind, lform, rform Form) int
- func CompareOpFromString(op string) int
- 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
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 FormConst = 2 )
View Source
const ( CompLT = 0 CompLE = 1 CompGT = 2 CompGE = 3 CompEQ = 4 CompNE = 6 )
Variables ¶
This section is empty.
Functions ¶
func CompareOpCode ¶ added in v1.16.0
op:3, kind:3, left:2, right:2
func CompareOpFromString ¶ added in v1.16.0
Types ¶
type Bool ¶ added in v1.12.0
func NewBoolEmpty ¶ added in v1.13.0
func (*Bool) CopyWithBits ¶ added in v1.14.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
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
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
Click to show internal directories.
Click to hide internal directories.