Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/storage/bloom/spec.go

29 lines
487 B

package bloom
import "github.com/prometheus/common/model"
type Metadata interface {
Version() uint32
NumSeries() uint64
NumChunks() uint64
Size() uint64 // bytes
// timestamps
From() int64
Through() int64
// series
FromFingerprint() model.Fingerprint
ThroughFingerprint() model.Fingerprint
}
type Iterator[K any, V any] interface {
Next() bool
Err() error
At() V
Seek(K) Iterator[K, V]
}
type Block interface {
SeriesIterator() Iterator[model.Fingerprint, []byte]
}