influxdb/tsdb/cursor.go

14 lines
329 B
Go
Raw Normal View History

package tsdb
import "github.com/influxdata/influxdb/query"
2015-09-20 22:27:22 +00:00
// EOF represents a "not found" key returned by a Cursor.
const EOF = query.ZeroTime
2015-09-20 22:27:22 +00:00
2015-09-16 21:04:37 +00:00
// Cursor represents an iterator over a series.
type Cursor interface {
SeekTo(seek int64) (key int64, value interface{})
2015-09-20 22:27:22 +00:00
Next() (key int64, value interface{})
2015-09-16 21:04:37 +00:00
Ascending() bool
2015-09-02 21:42:34 +00:00
}