pebble

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PebbleStorage

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

PebbleStorage PebbleDB 存储引擎

func NewPebbleStorage

func NewPebbleStorage(path string) (*PebbleStorage, error)

NewPebbleStorage 创建 PebbleDB 存储

func (*PebbleStorage) BatchDelete

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

BatchDelete 批量删除

func (*PebbleStorage) BatchGet

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

BatchGet 批量获取

func (*PebbleStorage) BatchPut

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

BatchPut 批量存储

func (*PebbleStorage) Close

func (s *PebbleStorage) Close() error

Close 关闭

func (*PebbleStorage) Count

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

Count 统计数量

func (*PebbleStorage) Delete

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

Delete 删除向量

func (*PebbleStorage) Get

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

Get 获取向量

func (*PebbleStorage) Iterate

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

Iterate 遍历所有向量

func (*PebbleStorage) Load

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

Load 加载

func (*PebbleStorage) Put

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

Put 存储向量

func (*PebbleStorage) Save

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

Save 保存

Jump to

Keyboard shortcuts

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