MCPcopy
hub / github.com/prometheus/prometheus / ChunkOrIterable

Method ChunkOrIterable

tsdb/block.go:139–139  ·  view source on GitHub ↗

ChunkOrIterable returns the series data for the given chunks.Meta. Either a single chunk will be returned, or an iterable. A single chunk should be returned if chunks.Meta maps to a chunk that already exists and doesn't need modifications. An iterable should be returned if chunks.Meta maps to a subs

(meta chunks.Meta)

Source from the content-addressed store, hash-verified

137 // always expect a chunk to be returned. You can check that iterable is nil
138 // in those cases.
139 ChunkOrIterable(meta chunks.Meta) (chunkenc.Chunk, chunkenc.Iterable, error)
140
141 // Close releases all underlying resources of the reader.
142 Close() error

Implementers 4

nopChunkReadertsdb/querier.go
HeadAndOOOChunkReadertsdb/ooo_head_read.go
headChunkReadertsdb/head_read.go
Readertsdb/chunks/chunks.go

Calls

no outgoing calls