Correct spelling of "iterable" (#8713)

Signed-off-by: Christian Simon <simon@swine.de>
This commit is contained in:
Christian Simon 2021-04-12 21:43:42 +01:00 committed by GitHub
parent 5a0a09cf48
commit 9781e51f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -209,7 +209,7 @@ type ExemplarAppender interface {
// SeriesSet contains a set of series. // SeriesSet contains a set of series.
type SeriesSet interface { type SeriesSet interface {
Next() bool Next() bool
// At returns full series. Returned series should be iteratable even after Next is called. // At returns full series. Returned series should be iterable even after Next is called.
At() Series At() Series
// The error that iteration as failed with. // The error that iteration as failed with.
// When an error occurs, set cannot continue to iterate. // When an error occurs, set cannot continue to iterate.
@ -264,13 +264,13 @@ func ErrChunkSeriesSet(err error) ChunkSeriesSet {
// Series exposes a single time series and allows iterating over samples. // Series exposes a single time series and allows iterating over samples.
type Series interface { type Series interface {
Labels Labels
SampleIteratable SampleIterable
} }
// ChunkSeriesSet contains a set of chunked series. // ChunkSeriesSet contains a set of chunked series.
type ChunkSeriesSet interface { type ChunkSeriesSet interface {
Next() bool Next() bool
// At returns full chunk series. Returned series should be iteratable even after Next is called. // At returns full chunk series. Returned series should be iterable even after Next is called.
At() ChunkSeries At() ChunkSeries
// The error that iteration has failed with. // The error that iteration has failed with.
// When an error occurs, set cannot continue to iterate. // When an error occurs, set cannot continue to iterate.
@ -283,7 +283,7 @@ type ChunkSeriesSet interface {
// ChunkSeries exposes a single time series and allows iterating over chunks. // ChunkSeries exposes a single time series and allows iterating over chunks.
type ChunkSeries interface { type ChunkSeries interface {
Labels Labels
ChunkIteratable ChunkIterable
} }
// Labels represents an item that has labels e.g. time series. // Labels represents an item that has labels e.g. time series.
@ -292,12 +292,12 @@ type Labels interface {
Labels() labels.Labels Labels() labels.Labels
} }
type SampleIteratable interface { type SampleIterable interface {
// Iterator returns a new, independent iterator of the data of the series. // Iterator returns a new, independent iterator of the data of the series.
Iterator() chunkenc.Iterator Iterator() chunkenc.Iterator
} }
type ChunkIteratable interface { type ChunkIterable interface {
// Iterator returns a new, independent iterator that iterates over potentially overlapping // Iterator returns a new, independent iterator that iterates over potentially overlapping
// chunks of the series, sorted by min time. // chunks of the series, sorted by min time.
Iterator() chunks.Iterator Iterator() chunks.Iterator

View File

@ -453,7 +453,7 @@ func (b *blockBaseSeriesSet) Next() bool {
var trimFront, trimBack bool var trimFront, trimBack bool
// Copy chunks as iteratables are reusable. // Copy chunks as iterables are reusable.
chks := make([]chunks.Meta, 0, len(b.bufChks)) chks := make([]chunks.Meta, 0, len(b.bufChks))
// Prefilter chunks and pick those which are not entirely deleted or totally outside of the requested range. // Prefilter chunks and pick those which are not entirely deleted or totally outside of the requested range.