influxdb/tsdb/cursor.go

48 lines
841 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 {
Close()
SeriesKey() string
Err() error
}
type IntegerBatchCursor interface {
Cursor
Next() (keys []int64, values []int64)
}
type FloatBatchCursor interface {
Cursor
Next() (keys []int64, values []float64)
}
type UnsignedBatchCursor interface {
Cursor
Next() (keys []int64, values []uint64)
}
type StringBatchCursor interface {
Cursor
Next() (keys []int64, values []string)
}
type BooleanBatchCursor interface {
Cursor
Next() (keys []int64, values []bool)
}
type CursorRequest struct {
Measurement string
Series string
Field string
Ascending bool
StartTime int64
EndTime int64
2015-09-02 21:42:34 +00:00
}