Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { // FileNumber returns file name for store builder FileNumber() int64 // Add puts k/v pair init sst file write buffer // NOTICE: key must key in sort by desc Add(key uint32, value []byte) error // MinKey returns min key in store MinKey() uint32 // MaxKey returns max key in store MaxKey() uint32 // Size returns the length of store file Size() int32 // Count returns the number of k/v pairs contained in the store Count() uint64 // Close closes sst file write buffer Close() error }
Builder builds sst file
type Cache ¶
type Cache interface { // GetReader returns store reader from cache, create new reader if not exist. GetReader(family string, fileNumber int64) (Reader, error) // Close cleans cache data after closing reader resource firstly Close() error }
Cache caches table readers
type Iterator ¶
type Iterator interface { // Next moves the iterator to the next key/value pair. // It returns false if the iterator is exhausted. Next() bool // Key returns the key of the current key/value pair Key() uint32 // Value returns the value of the current key/value pair Value() []byte }
Iterator iterates over a store's key/value pairs in key order.
Click to show internal directories.
Click to hide internal directories.