2019-09-23 15:56:30 +00:00
|
|
|
package influxdb
|
|
|
|
|
2021-03-30 18:10:02 +00:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-10-14 19:09:32 +00:00
|
|
|
"github.com/influxdata/influxql"
|
|
|
|
|
2021-03-30 18:10:02 +00:00
|
|
|
"github.com/influxdata/influxdb/v2/kit/platform"
|
|
|
|
)
|
2019-09-23 15:56:30 +00:00
|
|
|
|
|
|
|
// Predicate is something that can match on a series key.
|
|
|
|
type Predicate interface {
|
2020-01-08 21:18:09 +00:00
|
|
|
Clone() Predicate
|
2019-09-23 15:56:30 +00:00
|
|
|
Matches(key []byte) bool
|
|
|
|
Marshal() ([]byte, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteService will delete a bucket from the range and predict.
|
|
|
|
type DeleteService interface {
|
2022-10-14 19:09:32 +00:00
|
|
|
DeleteBucketRangePredicate(ctx context.Context, orgID, bucketID platform.ID, min, max int64, pred Predicate, measurement influxql.Expr) error
|
2019-09-23 15:56:30 +00:00
|
|
|
}
|