2020-03-06 22:05:03 +00:00
|
|
|
package reads
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2020-04-03 17:39:20 +00:00
|
|
|
"github.com/influxdata/influxdb/v2"
|
|
|
|
"github.com/influxdata/influxdb/v2/storage"
|
|
|
|
"github.com/influxdata/influxdb/v2/tsdb/cursors"
|
2020-03-06 22:05:03 +00:00
|
|
|
"github.com/influxdata/influxql"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Viewer is used by the store to query data from time-series files.
|
|
|
|
type Viewer interface {
|
2020-03-12 18:32:52 +00:00
|
|
|
CreateCursorIterator(ctx context.Context) (cursors.CursorIterator, error)
|
2020-03-06 22:05:03 +00:00
|
|
|
CreateSeriesCursor(ctx context.Context, orgID, bucketID influxdb.ID, cond influxql.Expr) (storage.SeriesCursor, error)
|
|
|
|
TagKeys(ctx context.Context, orgID, bucketID influxdb.ID, start, end int64, predicate influxql.Expr) (cursors.StringIterator, error)
|
|
|
|
TagValues(ctx context.Context, orgID, bucketID influxdb.ID, tagKey string, start, end int64, predicate influxql.Expr) (cursors.StringIterator, error)
|
|
|
|
}
|