bleve: github.com/blevesearch/bleve/index/store/boltdb Index | Files

package boltdb

import "github.com/blevesearch/bleve/index/store/boltdb"

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

Package Files

iterator.go reader.go stats.go store.go writer.go

Constants

const (
    Name = "boltdb"
)

func New Uses

func New(mo store.MergeOperator, config map[string]interface{}) (store.KVStore, error)

type Iterator Uses

type Iterator struct {
    // contains filtered or unexported fields
}

func (*Iterator) Close Uses

func (i *Iterator) Close() error

func (*Iterator) Current Uses

func (i *Iterator) Current() ([]byte, []byte, bool)

func (*Iterator) Key Uses

func (i *Iterator) Key() []byte

func (*Iterator) Next Uses

func (i *Iterator) Next()

func (*Iterator) Seek Uses

func (i *Iterator) Seek(k []byte)

func (*Iterator) Valid Uses

func (i *Iterator) Valid() bool

func (*Iterator) Value Uses

func (i *Iterator) Value() []byte

type Reader Uses

type Reader struct {
    // contains filtered or unexported fields
}

func (*Reader) Close Uses

func (r *Reader) Close() error

func (*Reader) Get Uses

func (r *Reader) Get(key []byte) ([]byte, error)

func (*Reader) MultiGet Uses

func (r *Reader) MultiGet(keys [][]byte) ([][]byte, error)

func (*Reader) PrefixIterator Uses

func (r *Reader) PrefixIterator(prefix []byte) store.KVIterator

func (*Reader) RangeIterator Uses

func (r *Reader) RangeIterator(start, end []byte) store.KVIterator

type Store Uses

type Store struct {
    // contains filtered or unexported fields
}

func (*Store) Close Uses

func (bs *Store) Close() error

func (*Store) Compact Uses

func (bs *Store) Compact() error

Compact calls CompactWithBatchSize with a default batch size of 100. This is a workaround for github issue #374.

func (*Store) CompactWithBatchSize Uses

func (bs *Store) CompactWithBatchSize(batchSize int) error

CompactWithBatchSize removes DictionaryTerm entries with a count of zero (in batchSize batches) Removing entries is a workaround for github issue #374.

func (*Store) Reader Uses

func (bs *Store) Reader() (store.KVReader, error)

func (*Store) Stats Uses

func (bs *Store) Stats() json.Marshaler

func (*Store) Writer Uses

func (bs *Store) Writer() (store.KVWriter, error)

type Writer Uses

type Writer struct {
    // contains filtered or unexported fields
}

func (*Writer) Close Uses

func (w *Writer) Close() error

func (*Writer) ExecuteBatch Uses

func (w *Writer) ExecuteBatch(batch store.KVBatch) (err error)

func (*Writer) NewBatch Uses

func (w *Writer) NewBatch() store.KVBatch

func (*Writer) NewBatchEx Uses

func (w *Writer) NewBatchEx(options store.KVBatchOptions) ([]byte, store.KVBatch, error)

Package boltdb imports 7 packages (graph) and is imported by 108 packages. Updated 2017-04-15. Refresh now. Tools for package owners.