Make chunkenc.Iterator.At behaviour unspecified without Next done.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
pull/6777/head
Bartlomiej Plotka 5 years ago
parent ad51c649b5
commit 5d84e5d895

@ -81,11 +81,9 @@ type Iterator interface {
// If current sample found by previous `Next` or `Seek` operation already has this property, Seek has no effect.
// Seek returns true, if such sample exists, false otherwise.
// Iterator is exhausted when the Seek returns false.
// TODO(bwplotka): Verify above statements on all implementations with unit test.
Seek(t int64) bool
// At returns the current timestamp/value pair.
// At returns (math.MinInt64, 0.0) before the iterator has advanced.
// TODO(bwplotka): Verify above statement on all implementations with unit test.
// Before the iterator has advanced At behaviour is unspecified.
At() (int64, float64)
// Err returns the current error. It should be used only after iterator is
// exhausted, so `Next` or `Seek` returns false.

Loading…
Cancel
Save