Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnsafeIterator ¶
type UnsafeIterator interface {
Valid() bool
Next()
Seek(key []byte)
// UnsafeKey returns a view into underlying storage (no copy).
// The returned slice is valid until the next Next()/Seek()/Close() on this iterator.
UnsafeKey() []byte
// UnsafeValue returns a view into underlying storage (no copy) and may trigger I/O.
// The returned slice is valid until the next Next()/Seek()/Close() on this iterator.
UnsafeValue() []byte
UnsafeEntry() (val []byte, ptr page.ValuePtr, flags byte) // Returns raw entry details
// Key and Value are the fast-path accessors: they return views and follow the
// same lifetime rules as UnsafeKey/UnsafeValue.
Key() []byte
Value() []byte
// KeyCopy/ValueCopy append the current key/value into dst and return it.
KeyCopy(dst []byte) []byte
ValueCopy(dst []byte) []byte
IsDeleted() bool // True if the current item is a tombstone
Error() error
Close() error
Domain() (start, end []byte)
}
Click to show internal directories.
Click to hide internal directories.