Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockStorage ¶
type ChunksEntryIterator ¶
type ChunksEntryIterator[T iter.EntryIterator] struct { // contains filtered or unexported fields }
ChunksEntryIterator iterates over log entries
func NewChunksEntryIterator ¶
func NewChunksEntryIterator( ctx context.Context, storage BlockStorage, chunks []ChunkData, pipeline log.Pipeline, direction logproto.Direction, minT, maxT int64, ) *ChunksEntryIterator[iter.EntryIterator]
func (*ChunksEntryIterator[T]) At ¶
func (c *ChunksEntryIterator[T]) At() push.Entry
func (*ChunksEntryIterator) Next ¶
func (b *ChunksEntryIterator) Next() bool
todo: better chunk batch iterator
func (*ChunksEntryIterator) StreamHash ¶
func (b *ChunksEntryIterator) StreamHash() uint64
type ChunksSampleIterator ¶
type ChunksSampleIterator[T iter.SampleIterator] struct { // contains filtered or unexported fields }
ChunksSampleIterator iterates over metric samples
func NewChunksSampleIterator ¶
func NewChunksSampleIterator( ctx context.Context, storage BlockStorage, chunks []ChunkData, extractor log.SampleExtractor, minT, maxT int64, ) *ChunksSampleIterator[iter.SampleIterator]
func (*ChunksSampleIterator[T]) At ¶
func (c *ChunksSampleIterator[T]) At() logproto.Sample
func (*ChunksSampleIterator) Next ¶
func (b *ChunksSampleIterator) Next() bool
todo: better chunk batch iterator
func (*ChunksSampleIterator) StreamHash ¶
func (b *ChunksSampleIterator) StreamHash() uint64
type Metastore ¶
type Metastore interface {
ListBlocksForQuery(ctx context.Context, in *metastorepb.ListBlocksForQueryRequest, opts ...grpc.CallOption) (*metastorepb.ListBlocksForQueryResponse, error)
}
type Querier ¶
type Querier struct {
// contains filtered or unexported fields
}
func (*Querier) SelectLogs ¶
func (q *Querier) SelectLogs(ctx context.Context, req logql.SelectLogParams) (iter.EntryIterator, error)
func (*Querier) SelectSamples ¶
func (q *Querier) SelectSamples(ctx context.Context, req logql.SelectSampleParams) (iter.SampleIterator, error)
Click to show internal directories.
Click to hide internal directories.