Documentation ¶
Index ¶
- func BuildIndexFileName(tableName, uploader, dbName string) string
- func DoParallelQueries(ctx context.Context, queryIndex QueryIndexFunc, queries []index.Query, ...) error
- func GetUnsafeBytes(s string) []byte
- func GetUnsafeString(buf []byte) string
- func NewCallbackDeduper(callback index.QueryPagesCallback, queries int) index.QueryPagesCallback
- func NewSyncCallbackDeduper(callback index.QueryPagesCallback, queries int) index.QueryPagesCallback
- func QueriesByTable(queries []index.Query) map[string][]index.Query
- func SafeOpenBoltdbFile(path string) (*bbolt.DB, error)
- type QueryIndexFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIndexFileName ¶
func DoParallelQueries ¶
func DoParallelQueries(ctx context.Context, queryIndex QueryIndexFunc, queries []index.Query, callback index.QueryPagesCallback) error
func GetUnsafeBytes ¶
func GetUnsafeString ¶
func NewCallbackDeduper ¶
func NewCallbackDeduper(callback index.QueryPagesCallback, queries int) index.QueryPagesCallback
NewCallbackDeduper should always be used on table level not the whole query level because it just looks at range values which can be repeated across tables NewCallbackDeduper is safe not to used by multiple goroutines Cortex anyways dedupes entries across tables
func NewSyncCallbackDeduper ¶
func NewSyncCallbackDeduper(callback index.QueryPagesCallback, queries int) index.QueryPagesCallback
NewSyncCallbackDeduper should always be used on table level not the whole query level because it just looks at range values which can be repeated across tables NewSyncCallbackDeduper is safe to used by multiple goroutines Cortex anyways dedupes entries across tables
func QueriesByTable ¶
QueriesByTable groups and returns queries by tables.
Types ¶
type QueryIndexFunc ¶
Click to show internal directories.
Click to hide internal directories.