mirror of
https://github.com/grafana/loki.git
synced 2026-03-13 09:33:58 +08:00
18 lines
456 B
Go
18 lines
456 B
Go
package indexpointers
|
|
|
|
import "time"
|
|
|
|
type (
|
|
// RowPredicate is an expression used to filter rows in a data object.
|
|
RowPredicate interface{ isRowPredicate() }
|
|
)
|
|
|
|
// Supported predicates.
|
|
type (
|
|
// A TimeRangeRowPredicate is a RowPredicate which requires a start and end timestamp column to exist,
|
|
// and for the timestamp to be within the range.
|
|
TimeRangeRowPredicate struct{ Start, End time.Time }
|
|
)
|
|
|
|
func (TimeRangeRowPredicate) isRowPredicate() {}
|