Versions in this module Expand all Collapse all v0 v0.1.0 Jan 14, 2022 Changes in this version + const NoVal + const ValLimit + var ErrInvalidKey = errors.New("cedar: invalid key") + var ErrInvalidVal = errors.New("cedar: invalid val") + var ErrNoKey = errors.New("cedar: not have key") + var ErrNoVal = errors.New("cedar: not have val") + type Block struct + type Cedar struct + func New(opt *Options) *Cedar + func (c *Cedar) Close() + func (cd *Cedar) Delete(key []byte) error + func (cd *Cedar) ExactMatch(key []byte) (int, bool) + func (cd *Cedar) Find(key []byte, from int) (int, error) + func (cd *Cedar) Get(key []byte) (value int, err error) + func (cd *Cedar) Insert(key []byte, val int) error + func (cd *Cedar) Jump(key []byte, from int) (to int, err error) + func (cd *Cedar) PrefixMatch(key []byte, n ...int) (ids []int) + func (cd *Cedar) PrefixPredict(key []byte, n ...int) (ids []int) + func (cd *Cedar) Update(key []byte, value int) error + func (cd *Cedar) Value(path int) (val int, err error) + type MMap struct + func NewMMap(mmapDir string) *MMap + func (m *MMap) AddBlock(c *Cedar, capacity int) + func (m *MMap) InitData(c *Cedar) + func (m *MMap) OpenFile() + type MetaInfo struct + LoadSize int + Reduced bool + type NInfo struct + type Node struct + type Options struct + MMapPath string + Reduced bool + UseMMap bool