Versions in this module Expand all Collapse all v1 v1.0.0 Feb 22, 2019 Changes in this version + const GiB + const KiB + const MiB + var DefaultBlockCacheCapacity = 8 * MiB + var DefaultBlockCacher = LRUCacher + var DefaultBlockRestartInterval = 16 + var DefaultBlockSize = 4 * KiB + var DefaultCompactionExpandLimitFactor = 25 + var DefaultCompactionGPOverlapsFactor = 10 + var DefaultCompactionL0Trigger = 4 + var DefaultCompactionSourceLimitFactor = 1 + var DefaultCompactionTableSize = 2 * MiB + var DefaultCompactionTableSizeMultiplier = 1.0 + var DefaultCompactionTotalSize = 10 * MiB + var DefaultCompactionTotalSizeMultiplier = 10.0 + var DefaultCompressionType = SnappyCompression + var DefaultIteratorSamplingRate = 1 * MiB + var DefaultOpenFilesCacheCapacity = 500 + var DefaultOpenFilesCacher = LRUCacher + var DefaultWriteBuffer = 4 * MiB + var DefaultWriteL0PauseTrigger = 12 + var DefaultWriteL0SlowdownTrigger = 8 + var LRUCacher = &CacherFunc + var NoCacher = &CacherFunc + func GetStrict(o *Options, ro *ReadOptions, strict Strict) bool + type Cacher interface + New func(capacity int) cache.Cacher + type CacherFunc struct + NewFunc func(capacity int) cache.Cacher + func (f *CacherFunc) New(capacity int) cache.Cacher + type Compression uint + const DefaultCompression + const NoCompression + const SnappyCompression + func (c Compression) String() string + type Options struct + AltFilters []filter.Filter + BlockCacheCapacity int + BlockCacheEvictRemoved bool + BlockCacher Cacher + BlockRestartInterval int + BlockSize int + CompactionExpandLimitFactor int + CompactionGPOverlapsFactor int + CompactionL0Trigger int + CompactionSourceLimitFactor int + CompactionTableSize int + CompactionTableSizeMultiplier float64 + CompactionTableSizeMultiplierPerLevel []float64 + CompactionTotalSize int + CompactionTotalSizeMultiplier float64 + CompactionTotalSizeMultiplierPerLevel []float64 + Comparer comparer.Comparer + Compression Compression + DisableBlockCache bool + DisableBufferPool bool + DisableCompactionBackoff bool + DisableLargeBatchTransaction bool + ErrorIfExist bool + ErrorIfMissing bool + Filter filter.Filter + IteratorSamplingRate int + NoSync bool + NoWriteMerge bool + OpenFilesCacheCapacity int + OpenFilesCacher Cacher + ReadOnly bool + Strict Strict + WriteBuffer int + WriteL0PauseTrigger int + WriteL0SlowdownTrigger int + func (o *Options) GetAltFilters() []filter.Filter + func (o *Options) GetBlockCacheCapacity() int + func (o *Options) GetBlockCacheEvictRemoved() bool + func (o *Options) GetBlockCacher() Cacher + func (o *Options) GetBlockRestartInterval() int + func (o *Options) GetBlockSize() int + func (o *Options) GetCompactionExpandLimit(level int) int + func (o *Options) GetCompactionGPOverlaps(level int) int + func (o *Options) GetCompactionL0Trigger() int + func (o *Options) GetCompactionSourceLimit(level int) int + func (o *Options) GetCompactionTableSize(level int) int + func (o *Options) GetCompactionTotalSize(level int) int64 + func (o *Options) GetComparer() comparer.Comparer + func (o *Options) GetCompression() Compression + func (o *Options) GetDisableBlockCache() bool + func (o *Options) GetDisableBufferPool() bool + func (o *Options) GetDisableCompactionBackoff() bool + func (o *Options) GetDisableLargeBatchTransaction() bool + func (o *Options) GetErrorIfExist() bool + func (o *Options) GetErrorIfMissing() bool + func (o *Options) GetFilter() filter.Filter + func (o *Options) GetIteratorSamplingRate() int + func (o *Options) GetNoSync() bool + func (o *Options) GetNoWriteMerge() bool + func (o *Options) GetOpenFilesCacheCapacity() int + func (o *Options) GetOpenFilesCacher() Cacher + func (o *Options) GetReadOnly() bool + func (o *Options) GetStrict(strict Strict) bool + func (o *Options) GetWriteBuffer() int + func (o *Options) GetWriteL0PauseTrigger() int + func (o *Options) GetWriteL0SlowdownTrigger() int + type ReadOptions struct + DontFillCache bool + Strict Strict + func (ro *ReadOptions) GetDontFillCache() bool + func (ro *ReadOptions) GetStrict(strict Strict) bool + type Strict uint + const DefaultStrict + const NoStrict + const StrictAll + const StrictBlockChecksum + const StrictCompaction + const StrictJournal + const StrictJournalChecksum + const StrictManifest + const StrictOverride + const StrictReader + const StrictRecovery + type WriteOptions struct + NoWriteMerge bool + Sync bool + func (wo *WriteOptions) GetNoWriteMerge() bool + func (wo *WriteOptions) GetSync() bool