Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaybeWrapIfInvariants ¶
func MaybeWrapIfInvariants(iter base.InternalIterator) base.InternalIterator
MaybeWrapIfInvariants wraps some iterators with an invalidating iterator. MaybeWrapIfInvariants does nothing in non-invariant builds.
func NewIter ¶
func NewIter(originalIterator base.InternalIterator, opts ...Option) base.InternalIterator
NewIter constructs a new invalidating iterator that wraps the provided iterator, trashing buffers for previously returned keys.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures the behavior of an invalidating iterator.
func IgnoreKinds ¶
func IgnoreKinds(kinds ...base.InternalKeyKind) Option
IgnoreKinds constructs an Option that configures an invalidating iterator to skip trashing k/v pairs with the provided key kinds. Some iterators provided key stability guarantees for specific key kinds.
Click to show internal directories.
Click to hide internal directories.