Documentation ¶
Overview ¶
Package boltdb implements a store.KVStore on top of BoltDB. It supports the following options:
"bucket" (string): the name of BoltDB bucket to use, defaults to "bleve".
"nosync" (bool): if true, set boltdb.DB.NoSync to true. It speeds up index operations in exchange of losing integrity guarantees if indexation aborts without closing the index. Use it when rebuilding indexes from zero.
Index ¶
Constants ¶
View Source
const (
Name = "boltdb"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) PrefixIterator ¶
func (r *Reader) PrefixIterator(prefix []byte) store.KVIterator
func (*Reader) RangeIterator ¶
func (r *Reader) RangeIterator(start, end []byte) store.KVIterator
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Compact ¶
Compact calls CompactWithBatchSize with a default batch size of 100. This is a workaround for github issue #374.
func (*Store) CompactWithBatchSize ¶
CompactWithBatchSize removes DictionaryTerm entries with a count of zero (in batchSize batches) Removing entries is a workaround for github issue #374.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) NewBatchEx ¶
Click to show internal directories.
Click to hide internal directories.