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

Method Write

csup/int.go:26–44  ·  view source on GitHub ↗
(vec vector.Any)

Source from the content-addressed store, hash-verified

24}
25
26func (i *IntEncoder) Write(vec vector.Any) {
27 if vec.Len() == 0 {
28 return
29 }
30 iv := vec.(*vector.Int)
31 if len(i.vals) == 0 {
32 i.min = iv.Values[0]
33 i.max = iv.Values[0]
34 }
35 for _, v := range iv.Values {
36 if v < i.min {
37 i.min = v
38 }
39 if v > i.max {
40 i.max = v
41 }
42 }
43 i.vals = append(i.vals, iv.Values...)
44}
45
46func (i *IntEncoder) Encode(group *errgroup.Group) {
47 group.Go(func() error {

Callers

nothing calls this directly

Calls 1

LenMethod · 0.65

Tested by

no test coverage detected