Documentation
¶
Index ¶
- type PebbleStorage
- func (s *PebbleStorage) BatchDelete(ids []string) error
- func (s *PebbleStorage) BatchGet(ids []string) ([]*types.Vector, error)
- func (s *PebbleStorage) BatchPut(vectors []*types.Vector) error
- func (s *PebbleStorage) Close() error
- func (s *PebbleStorage) Count() (int, error)
- func (s *PebbleStorage) Delete(id string) error
- func (s *PebbleStorage) Get(id string) (*types.Vector, error)
- func (s *PebbleStorage) Iterate(fn func(*types.Vector) bool) error
- func (s *PebbleStorage) Load(path string) error
- func (s *PebbleStorage) Put(vec *types.Vector) error
- func (s *PebbleStorage) Save(path string) error
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 批量存储
Click to show internal directories.
Click to hide internal directories.