Documentation
¶
Index ¶
- func ReadAll(i DocsIterator) (dst [][]byte)
- type AggQuery
- type AsyncRequest
- type AsyncResponse
- type Config
- type DocsIterator
- type EmptyDocsStream
- type FetchAsyncSearchResultRequest
- type FetchAsyncSearchResultResponse
- type FetchFieldsFilter
- type FetchRequest
- type Ingestor
- func (si *Ingestor) Document(ctx context.Context, id seq.ID, ff FetchFieldsFilter) []byte
- func (si *Ingestor) Documents(ctx context.Context, r FetchRequest) (DocsIterator, error)
- func (si *Ingestor) FetchAsyncSearchResult(ctx context.Context, r FetchAsyncSearchResultRequest) (FetchAsyncSearchResultResponse, error)
- func (si *Ingestor) FetchDocsStream(ctx context.Context, ids []seq.IDSource, explain bool, ff FetchFieldsFilter) (DocsIterator, error)
- func (si *Ingestor) Search(ctx context.Context, sr *SearchRequest, tr *querytracer.Tracer) (qpr *seq.QPR, docsStream DocsIterator, overallDuration time.Duration, ...)
- func (si *Ingestor) StartAsyncSearch(ctx context.Context, r AsyncRequest) (AsyncResponse, error)
- func (si *Ingestor) Status(ctx context.Context) *IngestorStatus
- type IngestorStatus
- type SearchRequest
- type StoreStatus
- type StreamingDoc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AsyncRequest ¶
type AsyncResponse ¶
type AsyncResponse struct {
ID string
}
type DocsIterator ¶
type DocsIterator interface {
Next() (StreamingDoc, error)
}
type EmptyDocsStream ¶
type EmptyDocsStream struct {
}
func (EmptyDocsStream) Next ¶
func (e EmptyDocsStream) Next() (StreamingDoc, error)
type FetchFieldsFilter ¶
type FetchRequest ¶
type FetchRequest struct {
IDs []seq.ID
FieldsFilter FetchFieldsFilter
}
type Ingestor ¶
type Ingestor struct {
// contains filtered or unexported fields
}
func NewIngestor ¶
func NewIngestor(config Config, clients map[string]storeapi.StoreApiClient) *Ingestor
func (*Ingestor) Documents ¶
func (si *Ingestor) Documents(ctx context.Context, r FetchRequest) (DocsIterator, error)
func (*Ingestor) FetchAsyncSearchResult ¶
func (si *Ingestor) FetchAsyncSearchResult(ctx context.Context, r FetchAsyncSearchResultRequest) (FetchAsyncSearchResultResponse, error)
func (*Ingestor) FetchDocsStream ¶
func (si *Ingestor) FetchDocsStream(ctx context.Context, ids []seq.IDSource, explain bool, ff FetchFieldsFilter) (DocsIterator, error)
func (*Ingestor) Search ¶
func (si *Ingestor) Search( ctx context.Context, sr *SearchRequest, tr *querytracer.Tracer, ) ( qpr *seq.QPR, docsStream DocsIterator, overallDuration time.Duration, err error, )
func (*Ingestor) StartAsyncSearch ¶
func (si *Ingestor) StartAsyncSearch(ctx context.Context, r AsyncRequest) (AsyncResponse, error)
type IngestorStatus ¶
type IngestorStatus struct {
NumberOfStores int
OldestStorageTime *time.Time
Stores []StoreStatus
}
type SearchRequest ¶
type SearchRequest struct {
Explain bool
Q []byte
Offset int
Size int
Interval seq.MID
AggQ []AggQuery
From seq.MID
To seq.MID
WithTotal bool
ShouldFetch bool
Order seq.DocsOrder
}
func (*SearchRequest) GetAPISearchRequest ¶
func (sr *SearchRequest) GetAPISearchRequest() *storeapi.SearchRequest
type StreamingDoc ¶
func NewStreamingDoc ¶
func NewStreamingDoc(idSource seq.IDSource, data []byte) StreamingDoc
func (*StreamingDoc) Empty ¶
func (d *StreamingDoc) Empty() bool
func (*StreamingDoc) IDSource ¶
func (d *StreamingDoc) IDSource() seq.IDSource
Source Files
¶
Click to show internal directories.
Click to hide internal directories.