Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
Added commentary.
Browse files Browse the repository at this point in the history
Signed-off-by: Bartek Plotka <[email protected]>
  • Loading branch information
bwplotka committed Jul 31, 2019
1 parent 64eeed9 commit 4ed00e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1245,7 +1245,7 @@ type ChunkIterator interface {
}

type chunkIterator struct {
chunks []chunks.Meta
chunks []chunks.Meta // series in time order
i int
}

Expand All @@ -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
}
Expand Down

0 comments on commit 4ed00e1

Please sign in to comment.