Documentation
¶
Index ¶
- type ExecutionPlan
- type Executor
- func (e *Executor) Close()
- func (e *Executor) ExecLog(ctx context.Context, q *LogQuery) (*LogResult, error)
- func (e *Executor) ExecSpan(ctx context.Context, q *SpanQuery) (*SpanResult, error)
- func (e *Executor) IndexLogEntries(entries []*model.LogEntry)
- func (e *Executor) IndexLogEntry(entry model.LogEntry)
- func (e *Executor) IndexSpanEntries(spans []*model.SpanEntry)
- func (e *Executor) IndexSpanEntry(span model.SpanEntry)
- func (e *Executor) InvalidateLogSegment(seg storage.SegmentMeta)
- func (e *Executor) InvalidateSpanSegment(seg storage.SegmentMeta)
- func (e *Executor) RegisterBitmapIndex(segmentFile string, idx *index.MultiFieldIndex)
- func (e *Executor) RegisterFTSIndex(segmentFile string, idx *index.FTSIndex)
- func (e *Executor) RegisterLogFTSRibbon(segmentFile string, f *index.RibbonFilter)
- func (e *Executor) RegisterLogRibbon(segmentFile string, f *index.RibbonFilter)
- func (e *Executor) RegisterSpanBitmapIndex(segmentFile string, idx *index.MultiFieldIndex)
- func (e *Executor) RegisterSpanRibbon(segmentFile string, f *index.RibbonFilter)
- func (e *Executor) Services() []string
- type LogQuery
- type LogResult
- type PlanStep
- type Planner
- type SpanQuery
- type SpanResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionPlan ¶
type ExecutionPlan struct {
Segments []index.SegmentTimeRange
Steps []PlanStep
TotalSegments int
PrunedSegments int
}
func (*ExecutionPlan) HasStep ¶
func (plan *ExecutionPlan) HasStep(step PlanStep) bool
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor( logManager *storage.SegmentManager, spanManager *storage.SegmentManager, logSparse *index.SparseIndex, spanSparse *index.SparseIndex, ) *Executor
func NewExecutorWithCache ¶
func NewExecutorWithCache( logManager *storage.SegmentManager, spanManager *storage.SegmentManager, logSparse *index.SparseIndex, spanSparse *index.SparseIndex, logDir, spanDir string, cacheSize int, ) *Executor
func (*Executor) IndexLogEntries ¶
func (*Executor) IndexLogEntry ¶
func (*Executor) IndexSpanEntries ¶
func (*Executor) IndexSpanEntry ¶
func (*Executor) InvalidateLogSegment ¶
func (e *Executor) InvalidateLogSegment(seg storage.SegmentMeta)
func (*Executor) InvalidateSpanSegment ¶
func (e *Executor) InvalidateSpanSegment(seg storage.SegmentMeta)
func (*Executor) RegisterBitmapIndex ¶
func (e *Executor) RegisterBitmapIndex(segmentFile string, idx *index.MultiFieldIndex)
func (*Executor) RegisterFTSIndex ¶
func (*Executor) RegisterLogFTSRibbon ¶
func (e *Executor) RegisterLogFTSRibbon(segmentFile string, f *index.RibbonFilter)
func (*Executor) RegisterLogRibbon ¶
func (e *Executor) RegisterLogRibbon(segmentFile string, f *index.RibbonFilter)
func (*Executor) RegisterSpanBitmapIndex ¶
func (e *Executor) RegisterSpanBitmapIndex(segmentFile string, idx *index.MultiFieldIndex)
func (*Executor) RegisterSpanRibbon ¶
func (e *Executor) RegisterSpanRibbon(segmentFile string, f *index.RibbonFilter)
type LogQuery ¶
type LogQuery struct {
From time.Time
To time.Time
Services []string
Hosts []string
Levels []string
Attrs map[string]string
FullText string
TraceID model.TraceID
Limit int
Offset int
}
func (*LogQuery) FromUnixNano ¶
func (*LogQuery) HasFieldFilters ¶
func (*LogQuery) HasFullText ¶
func (*LogQuery) HasTimeRange ¶
func (*LogQuery) ToUnixNano ¶
type Planner ¶
type Planner struct {
// contains filtered or unexported fields
}
func NewPlanner ¶
func NewPlanner(sparse *index.SparseIndex) *Planner
func (*Planner) Plan ¶
func (p *Planner) Plan(q *LogQuery) *ExecutionPlan
Click to show internal directories.
Click to hide internal directories.