Documentation ¶
Index ¶
Constants ¶
View Source
const ( // create a new db sharded by time based on when write request is received ShardDBsByDuration = 15 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDBIndexClient ¶
type Querier ¶
type Querier interface {
QueryPages(ctx context.Context, queries []index.Query, callback index.QueryPagesCallback) error
}
func NewQuerier ¶
type Shipper ¶
type Shipper interface { AddIndex(tableName, userID string, index shipper_index.Index) error ForEach(ctx context.Context, tableName, userID string, callback shipper_index.ForEachIndexCallback) error }
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is a collection of multiple index files created for a same table by the ingester. It is used on the write path for writing the index. All the public methods are concurrency safe and take care of mutexes to avoid any data race.
func LoadTable ¶
func LoadTable(path, uploader string, indexShipper Shipper, makePerTenantBuckets bool, metrics *metrics) (*Table, error)
LoadTable loads local dbs belonging to the table and creates a new Table with references to dbs if there are any otherwise it doesn't create a table
func NewTable ¶
func NewTable(path, uploader string, indexShipper Shipper, makePerTenantBuckets bool) (*Table, error)
NewTable create a new Table without looking for any existing local dbs belonging to the table.
func (*Table) HandoverIndexesToShipper ¶
HandoverIndexesToShipper hands over the inactive dbs to shipper for uploading
type TableManager ¶
type TableManager struct {
// contains filtered or unexported fields
}
func NewTableManager ¶
func NewTableManager(cfg Config, indexShipper Shipper, registerer prometheus.Registerer) (*TableManager, error)
func (*TableManager) BatchWrite ¶
func (tm *TableManager) BatchWrite(ctx context.Context, batch index.WriteBatch) error
func (*TableManager) Stop ¶
func (tm *TableManager) Stop()
Click to show internal directories.
Click to hide internal directories.