dict

package
v0.0.0-...-8c4c416 Latest Latest
Warning

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

Go to latest
Published: May 14, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Fid    int32
	Vsz    int32
	Vpos   int32
	Tstamp int64
}

type Keydir

type Keydir struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Keydir is a index data structure for bitcask It wrap for hashmap(builtin go) It is safe to call add, remove, get concurrently.

func NewKeydir

func NewKeydir() *Keydir

func (*Keydir) Add

func (k *Keydir) Add(key string, Fid, Vsz, Vpos int32, Tstamp int64) error

func (*Keydir) Destroy

func (k *Keydir) Destroy()

func (*Keydir) Get

func (k *Keydir) Get(key string) (*Item, bool)

func (*Keydir) Remove

func (k *Keydir) Remove(key string)

Jump to

Keyboard shortcuts

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