bbolt

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BBoltStorage

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

BBoltStorage BBolt 存储引擎

func NewBBoltStorage

func NewBBoltStorage(path string) (*BBoltStorage, error)

NewBBoltStorage 创建 BBolt 存储

func (*BBoltStorage) BatchDelete

func (s *BBoltStorage) BatchDelete(ids []string) error

BatchDelete 批量删除

func (*BBoltStorage) BatchGet

func (s *BBoltStorage) BatchGet(ids []string) ([]*types.Vector, error)

BatchGet 批量获取

func (*BBoltStorage) BatchPut

func (s *BBoltStorage) BatchPut(vectors []*types.Vector) error

BatchPut 批量存储

func (*BBoltStorage) Close

func (s *BBoltStorage) Close() error

Close 关闭

func (*BBoltStorage) Count

func (s *BBoltStorage) Count() (int, error)

Count 统计数量

func (*BBoltStorage) Delete

func (s *BBoltStorage) Delete(id string) error

Delete 删除向量

func (*BBoltStorage) Get

func (s *BBoltStorage) Get(id string) (*types.Vector, error)

Get 获取向量

func (*BBoltStorage) Iterate

func (s *BBoltStorage) Iterate(fn func(*types.Vector) bool) error

Iterate 遍历所有向量

func (*BBoltStorage) Load

func (s *BBoltStorage) Load(path string) error

Load 加载

func (*BBoltStorage) Put

func (s *BBoltStorage) Put(vec *types.Vector) error

Put 存储向量

func (*BBoltStorage) Save

func (s *BBoltStorage) Save(path string) error

Save 保存

Jump to

Keyboard shortcuts

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