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

Function arrayOrSetContents

runtime/vam/expr/slice.go:270–279  ·  view source on GitHub ↗
(vec vector.Any)

Source from the content-addressed store, hash-verified

268}
269
270func arrayOrSetContents(vec vector.Any) ([]uint32, vector.Any) {
271 switch vec := vec.(type) {
272 case *vector.Array:
273 return vec.Offsets, vec.Values
274 case *vector.Set:
275 return vec.Offsets, vec.Values
276 default:
277 panic(vec)
278 }
279}

Callers 2

indexArrayOrSetFunction · 0.85
evalArrayOrSliceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected