Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultIteratorOptions = IteratorOptions{ PrefetchValues: true, PrefetchSize: 100, Reverse: false, AllVersions: false, }
DefaultIteratorOptions contains default options when iterating over Badger key-value stores.
Functions ¶
This section is empty.
Types ¶
type IteratorOptions ¶
type IteratorOptions struct {
// PrefetchSize is the number of KV pairs to prefetch while iterating.
// Valid only if PrefetchValues is true.
PrefetchSize int
// PrefetchValues Indicates whether we should prefetch values during
// iteration and store them.
PrefetchValues bool
Reverse bool // Direction of iteration. False is forward, true is backward.
AllVersions bool // Fetch all valid versions of the same key.
InternalAccess bool // Used to allow internal access to badger keys.
Prefix []byte // Only iterate over this given prefix.
SinceTs uint64 // Only read data that has version > SinceTs.
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.