Documentation ¶
Index ¶
Constants ¶
const (
// Name is the name of this engine in blevesearch
Name = "badger"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrefixIterator ¶
type PrefixIterator struct {
// contains filtered or unexported fields
}
PrefixIterator blevesearch prefix-iterator implementation
func (*PrefixIterator) Close ¶
func (i *PrefixIterator) Close() error
Close closes the current iterator and commit its transaction
func (*PrefixIterator) Current ¶
func (i *PrefixIterator) Current() ([]byte, []byte, bool)
Current returns the key & value of the current step
func (*PrefixIterator) Key ¶
func (i *PrefixIterator) Key() []byte
Key return the key of the current step
func (*PrefixIterator) Next ¶
func (i *PrefixIterator) Next()
Next advance the iterator to the next step
func (*PrefixIterator) Seek ¶
func (i *PrefixIterator) Seek(key []byte)
Seek advance the iterator to the specified key
func (*PrefixIterator) Valid ¶
func (i *PrefixIterator) Valid() bool
Valid whether the current iterator step is valid or not
func (*PrefixIterator) Value ¶
func (i *PrefixIterator) Value() []byte
Value returns the value of the current step
type RangeIterator ¶
type RangeIterator struct {
// contains filtered or unexported fields
}
RangeIterator implements blevesearch store iterator
func (*RangeIterator) Close ¶
func (i *RangeIterator) Close() error
Close closes the current iterator and commit its transaction
func (*RangeIterator) Current ¶
func (i *RangeIterator) Current() ([]byte, []byte, bool)
Current returns the key & value of the current step
func (*RangeIterator) Key ¶
func (i *RangeIterator) Key() []byte
Key return the key of the current step
func (*RangeIterator) Next ¶
func (i *RangeIterator) Next()
Next advance the iterator to the next step
func (*RangeIterator) Seek ¶
func (i *RangeIterator) Seek(key []byte)
Seek advance the iterator to the specified key
func (*RangeIterator) Valid ¶
func (i *RangeIterator) Valid() bool
Valid whether the current iterator step is valid or not
func (*RangeIterator) Value ¶
func (i *RangeIterator) Value() []byte
Value returns the value of the current step
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader implements bleve/Store/Reader interface
func (*Reader) PrefixIterator ¶
func (r *Reader) PrefixIterator(k []byte) store.KVIterator
PrefixIterator initialize a new prefix iterator
func (*Reader) RangeIterator ¶
func (r *Reader) RangeIterator(start, end []byte) store.KVIterator
RangeIterator initialize a new range iterator
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements blevesearch store
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer bleve.search/store/Writer implementation I (alash3al) adopted it from bleve/store/boltdb
func (*Writer) ExecuteBatch ¶
ExecuteBatch implements bleve ExecuteBatch
func (*Writer) NewBatchEx ¶
NewBatchEx implements bleve NewBatchEx