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

package goleveldb

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

Index

Package Files

batch.go config.go iterator.go reader.go store.go writer.go

Constants

const (
    Name = "goleveldb"
)

func New Uses

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

type Batch Uses

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

func (*Batch) Close Uses

func (b *Batch) Close() error

func (*Batch) Delete Uses

func (b *Batch) Delete(key []byte)

func (*Batch) Merge Uses

func (b *Batch) Merge(key, val []byte)

func (*Batch) Reset Uses

func (b *Batch) Reset()

func (*Batch) Set Uses

func (b *Batch) Set(key, val []byte)

type Iterator Uses

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

func (*Iterator) Close Uses

func (ldi *Iterator) Close() error

func (*Iterator) Current Uses

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

func (*Iterator) Key Uses

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

func (*Iterator) Next Uses

func (ldi *Iterator) Next()

func (*Iterator) Seek Uses

func (ldi *Iterator) Seek(key []byte)

func (*Iterator) Valid Uses

func (ldi *Iterator) Valid() bool

func (*Iterator) Value Uses

func (ldi *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 (ldbs *Store) Close() error

func (*Store) Compact Uses

func (ldbs *Store) Compact() error

Compact compacts the underlying goleveldb store. The current implementation includes a workaround for github issue #374 (see CompactWithBatchSize).

func (*Store) CompactWithBatchSize Uses

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

CompactWithBatchSize removes DictionaryTerm entries with a count of zero (in batchSize batches), then compacts the underlying goleveldb store. Removing entries is a workaround for github issue #374.

func (*Store) Reader Uses

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

func (*Store) Writer Uses

func (ldbs *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(b store.KVBatch) 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 goleveldb imports 10 packages (graph) and is imported by 48 packages. Updated 2017-01-10. Refresh now. Tools for package owners.