From 4ed00e1e16ec3833e012ffd9a1e60aae61ab1bcd Mon Sep 17 00:00:00 2001 From: Bartek Plotka Date: Wed, 31 Jul 2019 12:23:46 +0100 Subject: [PATCH] Added commentary. Signed-off-by: Bartek Plotka --- querier.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/querier.go b/querier.go index ea65a134..fda62eee 100644 --- a/querier.go +++ b/querier.go @@ -919,7 +919,7 @@ func (s *chainedSeries) ChunkIterator() ChunkIterator { return ch } -// chainedSeriesIterator implements a series iterater over a list +// chainedSeriesIterator implements a series iterated over a list // of time-sorted, non-overlapping iterators. type chainedSeriesIterator struct { series []Series // series in time order @@ -1245,7 +1245,7 @@ type ChunkIterator interface { } type chunkIterator struct { - chunks []chunks.Meta + chunks []chunks.Meta // series in time order i int } @@ -1263,8 +1263,10 @@ func (c *chunkIterator) At() chunks.Meta { func (c *chunkIterator) Err() error { return nil } +// chainedChunkIterator implements flat iteration for chunks iterated over a list +// of time-sorted, non-overlapping iterators for each series. type chainedChunkIterator struct { - chain []ChunkIterator + chain []ChunkIterator // chunk iterators for each series in time order i int err error }