Documentation ¶
Index ¶
- Variables
- func MaxNodeSize(keySize, valueSize uint32) uint32
- type Arena
- type Inserter
- type Iterator
- func (it *Iterator) Close() error
- func (it *Iterator) Error() error
- func (it *Iterator) First() (*base.InternalKey, []byte)
- func (it *Iterator) Head() bool
- func (it *Iterator) Last() (*base.InternalKey, []byte)
- func (it *Iterator) Next() (*base.InternalKey, []byte)
- func (it *Iterator) Prev() (*base.InternalKey, []byte)
- func (it *Iterator) SeekGE(key []byte) (*base.InternalKey, []byte)
- func (it *Iterator) SeekLT(key []byte) (*base.InternalKey, []byte)
- func (it *Iterator) SeekPrefixGE(prefix, key []byte, trySeekUsingNext bool) (*base.InternalKey, []byte)
- func (it *Iterator) SetBounds(lower, upper []byte)
- func (it *Iterator) String() string
- func (it *Iterator) Tail() bool
- type Skiplist
- func (s *Skiplist) Add(key base.InternalKey, value []byte) error
- func (s *Skiplist) Arena() *Arena
- func (s *Skiplist) Get(key []byte) ([]byte, bool, base.InternalKeyKind)
- func (s *Skiplist) Height() uint32
- func (s *Skiplist) NewFlushIter(bytesFlushed *uint64) base.InternalIterator
- func (s *Skiplist) NewIter(lower, upper []byte) *Iterator
- func (s *Skiplist) Reset(arena *Arena, cmp base.Compare)
- func (s *Skiplist) Size() uint32
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrArenaFull = errors.New("allocation failed because arena is full")
)
View Source
var ErrRecordExists = errors.New("record with this key already exists")
Functions ¶
func MaxNodeSize ¶
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
func (*Iterator) SeekPrefixGE ¶
type Skiplist ¶
type Skiplist struct {
// contains filtered or unexported fields
}
func (*Skiplist) NewFlushIter ¶
func (s *Skiplist) NewFlushIter(bytesFlushed *uint64) base.InternalIterator
Click to show internal directories.
Click to hide internal directories.