GetValueAt is an inefficient helper to get the value in a Vec when the type is unknown.
(v *Vec, rowIdx int)
| 389 | // GetValueAt is an inefficient helper to get the value in a Vec when the type |
| 390 | // is unknown. |
| 391 | func GetValueAt(v *Vec, rowIdx int) interface{} { |
| 392 | if v.Nulls().NullAt(rowIdx) { |
| 393 | return nil |
| 394 | } |
| 395 | t := v.Type() |
| 396 | switch v.CanonicalTypeFamily() { |
| 397 | // {{range .}} |
| 398 | case _CANONICAL_TYPE_FAMILY: |
| 399 | switch t.Width() { |
| 400 | // {{range .WidthOverloads}} |
| 401 | case _TYPE_WIDTH: |
| 402 | target := v.TemplateType() |
| 403 | return target.Get(rowIdx) |
| 404 | // {{end}} |
| 405 | } |
| 406 | // {{end}} |
| 407 | } |
| 408 | panic(fmt.Sprintf("unhandled type %s", t)) |
| 409 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…