MCPcopy Create free account
hub / github.com/brimdata/super / NewDict

Function NewDict

vector/dict.go:15–17  ·  view source on GitHub ↗
(vals Any, index []byte, counts []uint32)

Source from the content-addressed store, hash-verified

13var _ Any = (*Dict)(nil)
14
15func NewDict(vals Any, index []byte, counts []uint32) *Dict {
16 return &Dict{vals, index, counts}
17}
18
19func (d *Dict) Len() uint32 {
20 return uint32(len(d.Index))

Callers 15

TestDictRebuildDropTagsFunction · 0.92
projectMethod · 0.92
TestCompareOpsAndFormsFunction · 0.92
dropMethod · 0.92
TestArithOpsAndFormsFunction · 0.92
evalStringOrBytesFastMethod · 0.92
singleIPMethod · 0.92
intMaskFastMethod · 0.92
constBinMethod · 0.92
fastPathMethod · 0.92
absMethod · 0.92
ceilMethod · 0.92

Calls

no outgoing calls

Tested by 3

TestDictRebuildDropTagsFunction · 0.74
TestCompareOpsAndFormsFunction · 0.74
TestArithOpsAndFormsFunction · 0.74