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

package moss

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

Index

Package Files

batch.go iterator.go lower.go reader.go stats.go store.go writer.go

Constants

const Name = "moss"

Variables

var RegistryCollectionOptions = map[string]moss.CollectionOptions{}

RegistryCollectionOptions should be treated as read-only after process init()'ialization.

func InitMossStore Uses

func InitMossStore(config map[string]interface{}, options moss.CollectionOptions) (
    moss.Snapshot, moss.LowerLevelUpdate, store.KVStore, statsFunc, error)

func New Uses

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

New initializes a moss storage with values from the optional config["mossCollectionOptions"] (a JSON moss.CollectionOptions). Next, values from the RegistryCollectionOptions, named by the optional config["mossCollectionOptionsName"], take precedence. Finally, base case defaults are taken from moss.DefaultCollectionOptions.

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 (x *Iterator) Close() error

func (*Iterator) Current Uses

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

func (*Iterator) Key Uses

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

func (*Iterator) Next Uses

func (x *Iterator) Next()

func (*Iterator) Seek Uses

func (x *Iterator) Seek(seekToKey []byte)

func (*Iterator) Valid Uses

func (x *Iterator) Valid() bool

func (*Iterator) Value Uses

func (x *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(k []byte) (v []byte, err error)

func (*Reader) MultiGet Uses

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

func (*Reader) PrefixIterator Uses

func (r *Reader) PrefixIterator(k []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 (s *Store) Close() error

func (*Store) Logf Uses

func (s *Store) Logf(fmt string, args ...interface{})

func (*Store) LowerLevelStore Uses

func (s *Store) LowerLevelStore() store.KVStore

func (*Store) Reader Uses

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

func (*Store) Stats Uses

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

func (*Store) StatsMap Uses

func (s *Store) StatsMap() map[string]interface{}

func (*Store) Writer Uses

func (s *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) (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 moss imports 7 packages (graph) and is imported by 25 packages. Updated 2018-01-06. Refresh now. Tools for package owners.