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

Method Build

vector/builder.go:382–391  ·  view source on GitHub ↗
(sctx *super.Context)

Source from the content-addressed store, hash-verified

380}
381
382func (b *bytesStringTypeBuilder) Build(sctx *super.Context) Any {
383 switch b.typ.ID() {
384 case super.IDString:
385 return NewString(NewBytesTable(b.offs, b.bytes))
386 case super.IDBytes:
387 return NewBytes(NewBytesTable(b.offs, b.bytes))
388 default:
389 return NewTypeValue(NewBytesTable(b.offs, b.bytes))
390 }
391}
392
393type ipBuilder struct {
394 values []netip.Addr

Callers

nothing calls this directly

Calls 5

NewBytesTableFunction · 0.85
NewStringFunction · 0.70
NewBytesFunction · 0.70
NewTypeValueFunction · 0.70
IDMethod · 0.65

Tested by

no test coverage detected