MCPcopy
hub / github.com/grafana/tempo / readValue

Method readValue

tempodb/encoding/vparquet4/dedicated_columns.go:74–107  ·  view source on GitHub ↗
(attrs *DedicatedAttributes)

Source from the content-addressed store, hash-verified

72}
73
74func (dc *dedicatedColumn) readValue(attrs *DedicatedAttributes) *v1.AnyValue {
75 switch dc.Type {
76 case backend.DedicatedColumnTypeString:
77 var strVal *string
78 switch dc.ColumnIndex {
79 case 0:
80 strVal = attrs.String01
81 case 1:
82 strVal = attrs.String02
83 case 2:
84 strVal = attrs.String03
85 case 3:
86 strVal = attrs.String04
87 case 4:
88 strVal = attrs.String05
89 case 5:
90 strVal = attrs.String06
91 case 6:
92 strVal = attrs.String07
93 case 7:
94 strVal = attrs.String08
95 case 8:
96 strVal = attrs.String09
97 case 9:
98 strVal = attrs.String10
99 }
100 if strVal == nil {
101 return nil
102 }
103 return &v1.AnyValue{Value: &v1.AnyValue_StringValue{StringValue: *strVal}}
104 default:
105 return nil
106 }
107}
108
109func (dc *dedicatedColumn) writeValue(attrs *DedicatedAttributes, value *v1.AnyValue) bool {
110 switch dc.Type {

Callers 3

flattenForSelectAllFunction · 0.45

Calls

no outgoing calls

Tested by 2

flattenForSelectAllFunction · 0.36