NewChunk creates a new chunk
(metric labels.Labels, c chunkenc.Chunk, from, through model.Time)
| 19 | |
| 20 | // NewChunk creates a new chunk |
| 21 | func NewChunk(metric labels.Labels, c chunkenc.Chunk, from, through model.Time) Chunk { |
| 22 | return Chunk{ |
| 23 | From: from, |
| 24 | Through: through, |
| 25 | Metric: metric, |
| 26 | Data: c, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func (c *Chunk) NewIterator(iterator Iterator) Iterator { |
| 31 | if c.Data == nil { |
no outgoing calls
no test coverage detected