forked from influxdata/influxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cursor.go
47 lines (38 loc) · 841 Bytes
/
cursor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package tsdb
import "github.com/influxdata/influxdb/query"
// EOF represents a "not found" key returned by a Cursor.
const EOF = query.ZeroTime
// 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
}