store

package
v0.0.0-...-c6ab6ab Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator

type Iterator interface {
	Next() (string, bool)
}

Iterator consists from only one method which returns uid of the next vector

type Store

type Store interface {
	SetVector(id string, vec []float64) error
	GetVector(id string) ([]float64, error)
	SetHash(bucketName, vecId string) error
	GetHashIterator(bucketName string) (Iterator, error)
	Clear() error
}

Store methods to be able to hold and use search index It implies storage vectors at one place, and LSH hashes with vectors uid in other places to not duplicate vectors themselves

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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