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

Function NewDictEncoder

csup/dict.go:20–28  ·  view source on GitHub ↗
(typ super.Type, values PrimitiveEncoder)

Source from the content-addressed store, hash-verified

18}
19
20func NewDictEncoder(typ super.Type, values PrimitiveEncoder) Encoder {
21 if id := typ.ID(); id == super.IDUint8 || id == super.IDInt8 || id == super.IDBool {
22 return values
23 }
24 return &DictEncoder{
25 typ: typ,
26 PrimitiveEncoder: values,
27 }
28}
29
30func (d *DictEncoder) Encode(group *errgroup.Group) {
31 group.Go(func() error {

Callers 1

NewEncoderFunction · 0.85

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected