Documentation
¶
Index ¶
- func NewStore() *store.BlockQueueStore
- type BlockQueueStore
- type Compactor
- func (c *Compactor) Compact(tx *bbolt.Tx, entry compaction.BlockEntry) error
- func (c *Compactor) Init(tx *bbolt.Tx) error
- func (c *Compactor) NewPlan(cmd *raft.Log) compaction.Plan
- func (c *Compactor) Restore(tx *bbolt.Tx) error
- func (c *Compactor) UpdatePlan(tx *bbolt.Tx, plan *raft_log.CompactionPlanUpdate) error
- type Config
- type LevelConfig
- type Tombstones
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStore ¶
func NewStore() *store.BlockQueueStore
Types ¶
type BlockQueueStore ¶
type BlockQueueStore interface {
StoreEntry(*bbolt.Tx, compaction.BlockEntry) error
DeleteEntry(tx *bbolt.Tx, index uint64, id string) error
ListEntries(*bbolt.Tx) iter.Iterator[compaction.BlockEntry]
CreateBuckets(*bbolt.Tx) error
}
type Compactor ¶
type Compactor struct {
// contains filtered or unexported fields
}
func NewCompactor ¶
func NewCompactor( config Config, store BlockQueueStore, tombstones Tombstones, reg prometheus.Registerer, ) *Compactor
func (*Compactor) Compact ¶
func (c *Compactor) Compact(tx *bbolt.Tx, entry compaction.BlockEntry) error
func (*Compactor) UpdatePlan ¶
type Config ¶
type Config struct {
Levels []LevelConfig
CleanupBatchSize int32
CleanupDelay time.Duration
CleanupJobMinLevel int32
CleanupJobMaxLevel int32
}
func DefaultConfig ¶ added in v1.13.3
func DefaultConfig() Config
type LevelConfig ¶ added in v1.13.3
type Tombstones ¶
type Tombstones interface {
ListTombstones(before time.Time) iter.Iterator[*metastorev1.Tombstones]
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.