(loader *loader, projection field.Projection)
| 27 | func (*bytes) unmarshal(*csup.Context, field.Projection) {} |
| 28 | |
| 29 | func (b *bytes) project(loader *loader, projection field.Projection) vector.Any { |
| 30 | if len(projection) > 0 { |
| 31 | return vector.NewMissing(loader.sctx, b.length()) |
| 32 | } |
| 33 | table := b.load(loader) |
| 34 | switch b.meta.Typ.ID() { |
| 35 | case super.IDString: |
| 36 | return vector.NewString(table) |
| 37 | case super.IDBytes: |
| 38 | return vector.NewBytes(table) |
| 39 | case super.IDType: |
| 40 | return vector.NewTypeValue(table) |
| 41 | default: |
| 42 | panic(b.meta.Typ) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func (b *bytes) load(loader *loader) vector.BytesTable { |
| 47 | b.mu.Lock() |
nothing calls this directly
no test coverage detected