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