Versions in this module Expand all Collapse all v0 v0.10.2 Nov 21, 2020 v0.10.1 Aug 17, 2020 v0.10.0 May 25, 2020 Changes in this version + const ValueLimit + var ErrInvalidDataType = errors.New("cedar: invalid datatype") + var ErrInvalidKey = errors.New("cedar: invalid key") + var ErrInvalidValue = errors.New("cedar: invalid value") + var ErrNoPath = errors.New("cedar: no path") + var ErrNoValue = errors.New("cedar: no value") + type Cedar struct + Array []node + BheadC int + BheadF int + BheadO int + Blocks []block + Capacity int + MaxTrial int + Ninfos []ninfo + Ordered bool + Reject [257]int + Size int + func New() *Cedar + func (da *Cedar) Delete(key []byte) error + func (da *Cedar) Get(key []byte) (value int, err error) + func (da *Cedar) Insert(key []byte, value int) error + func (da *Cedar) Jump(path []byte, from int) (to int, err error) + func (da *Cedar) Key(id int) (key []byte, err error) + func (da *Cedar) Load(in io.Reader, dataType string) error + func (da *Cedar) LoadFromFile(fileName, dataType string) error + func (da *Cedar) PrefixMatch(key []byte, num int) (ids []int) + func (da *Cedar) PrefixPredict(key []byte, num int) (ids []int) + func (da *Cedar) Save(out io.Writer, dataType string) error + func (da *Cedar) SaveToFile(fileName, dataType string) error + func (da *Cedar) Status() (keys, nodes, size, capacity int) + func (da *Cedar) Update(key []byte, value int) error + func (da *Cedar) Value(id int) (value int, err error)