mirror of
https://github.com/prometheus/prometheus
synced 2024-12-28 09:42:22 +00:00
5bee0cfce2
The ChunkReader interface's Chunk() has been changed to ChunkOrIterable(). This is a precursor to OOO native histogram support - with OOO native histograms, the chunks.Meta passed to Chunk() can result in multiple chunks being returned rather than just a single chunk (e.g. if oooMergedChunk has a counter reset in the middle). To support this, ChunkOrIterable() requires either a single chunk or an iterable to be returned. If an iterable is returned, the caller has the responsibility of converting the samples from the iterable into possibly multiple chunks. The OOOHeadChunkReader now returns an iterable rather than a chunk to prepare for the native histograms case. Also as a beneficial side effect, oooMergedChunk and boundedChunk has been simplified as they only need to implement the Iterable interface now, not the full Chunk interface. --------- Signed-off-by: Fiona Liao <fiona.y.liao@gmail.com> Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com> |
||
---|---|---|
.. | ||
remote | ||
buffer_test.go | ||
buffer.go | ||
fanout_test.go | ||
fanout.go | ||
generic.go | ||
interface.go | ||
lazy.go | ||
memoized_iterator_test.go | ||
memoized_iterator.go | ||
merge_test.go | ||
merge.go | ||
noop.go | ||
secondary.go | ||
series_test.go | ||
series.go |