Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FallbackFieldMap ¶
type FallbackFieldMap struct {
// contains filtered or unexported fields
}
use hashnap
func NewFallbackFieldMap ¶
func NewFallbackFieldMap(n int) *FallbackFieldMap
func (*FallbackFieldMap) Get ¶
func (self *FallbackFieldMap) Get(name string) int
func (*FallbackFieldMap) Set ¶
func (self *FallbackFieldMap) Set(fields []resolver.FieldMeta)
type FieldLookup ¶
func NewFieldLookup ¶
func NewFieldLookup(fields []resolver.FieldMeta) FieldLookup
type NormalFieldMap ¶
type NormalFieldMap struct {
// contains filtered or unexported fields
}
Map for keys nums max 255, idx is in [0, 255), idx 255 means not found. keysoffset | metadata | aligned key0 | aligned key1 | ... | 1 ~ 8 8 ~ 16 16 ~ 32 > 32 keys use the long keys entry lists use bytes to reduce GC
func NewNormalFieldMap ¶
func NewNormalFieldMap(n int) *NormalFieldMap
func (*NormalFieldMap) Get ¶
func (self *NormalFieldMap) Get(name string) int
use native SIMD to accelerate it
func (*NormalFieldMap) Getdouble ¶
func (self *NormalFieldMap) Getdouble(name string) int
func (*NormalFieldMap) Set ¶
func (self *NormalFieldMap) Set(fields []resolver.FieldMeta)
type SmallFieldMap ¶
type SmallFieldMap struct {
// contains filtered or unexported fields
}
Map for keys nums max 8, idx is in [0, 8)
func NewSmallFieldMap ¶
func NewSmallFieldMap(hint int) *SmallFieldMap
func (*SmallFieldMap) Get ¶
func (self *SmallFieldMap) Get(name string) int
func (*SmallFieldMap) Set ¶
func (self *SmallFieldMap) Set(fields []resolver.FieldMeta)
Click to show internal directories.
Click to hide internal directories.