Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotEnoughFilesToCompact = errors.New("must provide two or more files to compact")
Functions ¶
This section is empty.
Types ¶
type CompactableSync ¶
type Compactor ¶
type Compactor struct {
// contains filtered or unexported fields
}
func NewCompactor ¶
type CompactorType ¶ added in v0.3.36
type CompactorType string
const (
CompactorTypeAttached CompactorType = "attached"
)
type Option ¶ added in v0.3.5
type Option func(*Compactor)
func WithC1ZOptions ¶ added in v0.7.22
WithC1ZOptions sets the C1Z options to use for the compactor. This allows tweaking C1Z opts such as encoder/decoder parallelism.
func WithCompactorType
deprecated
added in
v0.3.36
func WithCompactorType(compactorType CompactorType) Option
Deprecated: There is now only one compactor type, so this option is no longer needed.
func WithRunDuration ¶ added in v0.5.13
func WithSyncLimit ¶ added in v0.7.0
WithSyncLimit sets the number of syncs to keep after compaction cleanup.
func WithTmpDir ¶ added in v0.3.5
WithTmpDir sets the working directory where files will be created and edited during compaction. If not provided, the temporary directory will be used.
Click to show internal directories.
Click to hide internal directories.