Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound will be returned when the key could not be located ErrNotFound = errors.New("not found") ErrInternal = fmt.Errorf("%w: internal error", ErrNotFound) )
Functions ¶
This section is empty.
Types ¶
type GoStore ¶
type GoStore struct {
// contains filtered or unexported fields
}
type LSM ¶
type LSMOpts ¶
type LSMOpts struct { MemTableOpts *memtable.Opts ManifestOpts *manifest.Opts GoStorePath string SSTable_max_size int }
func NewDefaultLSMOpts ¶
return &LSMOpts{ MemTableOpts: &memtable.Opts{ WalPath: filepath.Join(gostorepath, "WAL.log"), Batch_write_size: 10, Max_size: 20000, Bloom_size: 10000, BloomPath: filepath.Join(gostorepath, "filters"), }, ManifestOpts: &manifest.Opts{ Path: filepath.Join(gostorepath, "manifest.log"), Num_levels: 4, Level0_max_size: 300000000, LevelPaths: []string{ filepath.Join(gostorepath, "l0"), filepath.Join(gostorepath, "l1"), filepath.Join(gostorepath, "l2"), filepath.Join(gostorepath, "l3"), }, SSTable_max_size: 400000, BloomPath: filepath.Join(gostorepath, "filters"), }, GoStorePath: gostorepath, }
func NewTestLSMOpts ¶
return &LSMOpts{ MemTableOpts: &memtable.Opts{ WalPath: filepath.Join(gostorepath, "WAL.log"), Batch_write_size: 100, Max_size: 1000, Bloom_size: 10000, BloomPath: filepath.Join(gostorepath, "filters"), }, ManifestOpts: &manifest.Opts{ LevelPaths: []string{ filepath.Join(gostorepath, "l0"), filepath.Join(gostorepath, "l1"), filepath.Join(gostorepath, "l2"), filepath.Join(gostorepath, "l3"), }, Path: filepath.Join(gostorepath, "manifest.log"), Num_levels: 4, Level0_max_size: 539375, SSTable_max_size: 1000, BloomPath: filepath.Join(gostorepath, "filters"), }, GoStorePath: gostorepath, }
Click to show internal directories.
Click to hide internal directories.