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

Function NewArrayEncoder

csup/array.go:20–26  ·  view source on GitHub ↗
(cctx *Context, typ *super.TypeArray)

Source from the content-addressed store, hash-verified

18var _ Encoder = (*ArrayEncoder)(nil)
19
20func NewArrayEncoder(cctx *Context, typ *super.TypeArray) *ArrayEncoder {
21 return &ArrayEncoder{
22 typ: typ.Type,
23 values: NewEncoder(cctx, typ.Type),
24 offsets: newOffsetsEncoder(),
25 }
26}
27
28func (a *ArrayEncoder) Write(vec vector.Any) {
29 if vec.Len() == 0 {

Callers 1

NewEncoderFunction · 0.85

Calls 2

newOffsetsEncoderFunction · 0.85
NewEncoderFunction · 0.70

Tested by

no test coverage detected