gtreap

package
v0.0.0-...-5ac9583 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package gtreap provides an in-memory implementation of the KVStore interfaces using the gtreap balanced-binary treap, copy-on-write data structure.

Index

Constants

View Source
const Name = "gtreap"

Variables

This section is empty.

Functions

func StoreConstructor

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

Types

type Batch

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

func (*Batch) Close

func (w *Batch) Close() error

func (*Batch) Delete

func (w *Batch) Delete(k []byte)

func (*Batch) Execute

func (w *Batch) Execute() (err error)

func (*Batch) Merge

func (w *Batch) Merge(k []byte, oper store.AssociativeMerge)

func (*Batch) Set

func (w *Batch) Set(k, v []byte)

type Item

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

type Iterator

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

func (*Iterator) Close

func (w *Iterator) Close() error

func (*Iterator) Current

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

func (*Iterator) Key

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

func (*Iterator) Next

func (w *Iterator) Next()

func (*Iterator) Seek

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

func (*Iterator) SeekFirst

func (w *Iterator) SeekFirst()

func (*Iterator) Valid

func (w *Iterator) Valid() bool

func (*Iterator) Value

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

type Reader

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

func (*Reader) Close

func (w *Reader) Close() error

func (*Reader) Get

func (w *Reader) Get(k []byte) (v []byte, err error)

func (*Reader) Iterator

func (w *Reader) Iterator(k []byte) store.KVIterator

type Store

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

func (*Store) Close

func (s *Store) Close() error

func (*Store) Delete

func (w *Store) Delete(k []byte) (err error)

func (*Store) Get

func (w *Store) Get(k []byte) (v []byte, err error)

func (*Store) Iterator

func (w *Store) Iterator(k []byte) store.KVIterator

func (*Store) NewBatch

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

func (*Store) Reader

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

func (*Store) Set

func (w *Store) Set(k, v []byte) (err error)

func (*Store) Writer

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL