Documentation ¶
Overview ¶
Package core provides core interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core32 ¶
type Core32 interface { Search(vec []float32, size int, epsilon, radius float32) (interface{}, error) Insert(vec []float32) (uint, error) InsertCommit(vec []float32, poolSize uint32) (uint, error) BulkInsert(vecs [][]float32) ([]uint, []error) BulkInsertCommit(vecs [][]float32, poolSize uint32) ([]uint, []error) CreateAndSaveIndex(poolSize uint32) error CreateIndex(poolSize uint32) error SaveIndex() error Remove(id uint) error BulkRemove(ids ...uint) error GetVector(id uint) ([]float32, error) Closer }
type Core64 ¶
type Core64 interface { Search(vec []float64, size int, epsilon, radius float32) (interface{}, error) Insert(vec []float64) (uint, error) InsertCommit(vec []float64, poolSize uint32) (uint, error) BulkInsert(vecs [][]float64) ([]uint, []error) BulkInsertCommit(vecs [][]float64, poolSize uint32) ([]uint, []error) CreateAndSaveIndex(poolSize uint32) error CreateIndex(poolSize uint32) error SaveIndex() error Remove(id uint) error BulkRemove(ids ...uint) error GetVector(id uint) ([]float64, error) Closer }
Click to show internal directories.
Click to hide internal directories.