AtFloatHistogram implements chunkenc.Iterator.
(h *histogram.FloatHistogram)
| 165 | |
| 166 | // AtFloatHistogram implements chunkenc.Iterator. |
| 167 | func (a *iteratorAdapter) AtFloatHistogram(h *histogram.FloatHistogram) (int64, *histogram.FloatHistogram) { |
| 168 | // PromQL engine always selects float histogram in its implementation so might call AtFloatHistogram |
| 169 | // even if it is a histogram. https://github.com/prometheus/prometheus/blob/v2.53.0/promql/engine.go#L2276 |
| 170 | if a.curr.ValType == chunkenc.ValHistogram { |
| 171 | return a.curr.Timestamps[a.curr.Index], a.curr.Histograms[a.curr.Index].ToFloat(h) |
| 172 | } |
| 173 | return a.curr.Timestamps[a.curr.Index], a.curr.FloatHistograms[a.curr.Index] |
| 174 | } |
| 175 | |
| 176 | // AtT implements chunkenc.Iterator. |
| 177 | func (a *iteratorAdapter) AtT() int64 { |
no outgoing calls