Documentation ¶
Index ¶
- Constants
- type InMemoryStore
- func (s *InMemoryStore) GetSignatureByVectorID(ctx context.Context, vectorID types.VectorID) (types.Signature, error)
- func (s *InMemoryStore) GetVectorsIDInBucket(ctx context.Context, bucketID types.Bucket) (chan types.VectorID, error)
- func (s *InMemoryStore) UpdateBucketsByVectorID(ctx context.Context, vectorID types.VectorID, bucketsID types.Buckets) error
- func (s *InMemoryStore) UpdateSignatureByVectorID(ctx context.Context, vectorID types.VectorID, signature types.Signature) error
Constants ¶
View Source
const BUCKET_WINDOW_SIZE_START = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryStore ¶
type InMemoryStore struct {
// contains filtered or unexported fields
}
InMemoryStore is a struct that implements the Store interface
func NewInMemoryStore ¶ added in v0.3.1
func NewInMemoryStore() *InMemoryStore
NewInMemoryStore creates a new instance of InMemoryStore
func (*InMemoryStore) GetSignatureByVectorID ¶ added in v0.3.1
func (s *InMemoryStore) GetSignatureByVectorID(ctx context.Context, vectorID types.VectorID) (types.Signature, error)
GetSignatureByVectorID retrieves the signature for a given vector ID
func (*InMemoryStore) GetVectorsIDInBucket ¶ added in v0.5.0
func (s *InMemoryStore) GetVectorsIDInBucket(ctx context.Context, bucketID types.Bucket) (chan types.VectorID, error)
GetVectorsIDInBucket retrieves vector IDs associated with given bucket IDs
func (*InMemoryStore) UpdateBucketsByVectorID ¶ added in v0.3.1
func (s *InMemoryStore) UpdateBucketsByVectorID(ctx context.Context, vectorID types.VectorID, bucketsID types.Buckets) error
UpdateBucketsByVectorID updates the buckets associated with a given vector ID
func (*InMemoryStore) UpdateSignatureByVectorID ¶ added in v0.3.1
func (s *InMemoryStore) UpdateSignatureByVectorID(ctx context.Context, vectorID types.VectorID, signature types.Signature) error
UpdateSignatureByVectorID updates the signature for a given vector ID
Click to show internal directories.
Click to hide internal directories.