Skip to content

Commit

Permalink
Improve PostingsForMatcher doc string
Browse files Browse the repository at this point in the history
Signed-off-by: Arve Knudsen <[email protected]>
  • Loading branch information
aknuds1 committed Mar 19, 2024
1 parent 02d022d commit 013a4cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tsdb/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ type IndexReader interface {
// LabelValues returns possible label values which may not be sorted.
LabelValues(ctx context.Context, name string, matchers ...*labels.Matcher) ([]string, error)

// PostingsForMatcher returns a sorted iterator over postings matching the provided label matcher.
// This method will not return postings for missing labels.
// PostingsForMatcher returns a sorted iterator over postings having a label matching the provided label matcher.
// If no postings are found having a label with the correct name and matching value, an empty iterator is returned.
PostingsForMatcher(ctx context.Context, m *labels.Matcher) index.Postings

// PostingsForMatchers assembles a single postings iterator based on the given matchers.
Expand Down
4 changes: 2 additions & 2 deletions tsdb/postings_for_matchers_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ type IndexPostingsReader interface {
// LabelValues returns possible label values which may not be sorted.
LabelValues(ctx context.Context, name string, matchers ...*labels.Matcher) ([]string, error)

// PostingsForMatcher returns a sorted iterator over postings matching the provided label matcher.
// This method will not return postings for missing labels.
// PostingsForMatcher returns a sorted iterator over postings having a label matching the provided label matcher.
// If no postings are found having a label with the correct name and matching value, an empty iterator is returned.
PostingsForMatcher(ctx context.Context, m *labels.Matcher) index.Postings
}

Expand Down

0 comments on commit 013a4cb

Please sign in to comment.