store

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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