Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDBIndexClient ¶
type StorageClient ¶
type StorageClient interface { GetObject(ctx context.Context, objectKey string) (io.ReadCloser, error) List(ctx context.Context, prefix string) ([]chunk.StorageObject, []chunk.StorageCommonPrefix, error) }
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is a collection of multiple files created for a same table by various ingesters. All the public methods are concurrency safe and take care of mutexes to avoid any data race.
func NewTable ¶
func NewTable(spanCtx context.Context, name, cacheLocation string, storageClient StorageClient, boltDBIndexClient BoltDBIndexClient, metrics *metrics) *Table
func (*Table) CleanupAllDBs ¶
Closes reference to all the open dbs and removes the local file.
func (*Table) LastUsedAt ¶
LastUsedAt returns the time at which table was last used for querying.
func (*Table) Query ¶
func (t *Table) Query(ctx context.Context, query chunk.IndexQuery, callback chunk_util.Callback) error
Queries all the dbs for index.
type TableManager ¶
type TableManager struct {
// contains filtered or unexported fields
}
func NewTableManager ¶
func NewTableManager(cfg Config, boltIndexClient BoltDBIndexClient, storageClient StorageClient, registerer prometheus.Registerer) (*TableManager, error)
func (*TableManager) QueryPages ¶
func (tm *TableManager) QueryPages(ctx context.Context, queries []chunk.IndexQuery, callback chunk_util.Callback) error
func (*TableManager) Stop ¶
func (tm *TableManager) Stop()
Click to show internal directories.
Click to hide internal directories.