Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyExtension = ".key" ValExtension = ".val" BloomExtension = ".bf" WalExtension = ".wal" SSTABLEExtesnion = ".sst" DBExtension = ".irisdb" MagicNumber = 0xAB75DE95 )
Variables ¶
View Source
var ( Fsync = true SyncInterval = 100 * time.Millisecond PageSize = 4096 Compression = true Wal = true Flag = os.O_CREATE | os.O_RDWR Permission = 0644 FalsePostiveProb = 0.01 DBName = "irisdb" MemTableSize = 64 * 1024 AvgKeySize = 16 SstableSize = 128 * 1024 // size of sstable in level 0 SizeMultiple = 5 // SizeLevel(i) = Multiple * SizeLevel(i-1) TOMPOSTONE = []byte{0xFD, 0xFE, 0xFA, 0xF9} MaxLevels = 6 )
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func DeserializeBlock ¶
func (*Block) SerializeBlock ¶
type IndexBlock ¶
type IndexBlock struct {
// contains filtered or unexported fields
}
func DeserializeIndex ¶
func DeserializeIndex(buf bytes.Buffer) *IndexBlock
func (*IndexBlock) SerializeIndex ¶
func (i *IndexBlock) SerializeIndex(buf bytes.Buffer)
type IndexEntry ¶
type IndexEntry struct {
// contains filtered or unexported fields
}
type SSTMergeIterator ¶
type SSTMergeIterator struct {
// contains filtered or unexported fields
}
Merge N sstables
func NewSSTMergeIterator ¶
func NewSSTMergeIterator(sstables []*SSTABLE, level int) *SSTMergeIterator
func (*SSTMergeIterator) CreateSST ¶
func (smi *SSTMergeIterator) CreateSST() ([]*SSTABLE, error)
Click to show internal directories.
Click to hide internal directories.