interfaces

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashFamily

type HashFamily interface {
	Hash(s string) types.Signature
	MinHash(v types.Vector) types.Signature
}

type SimilarityMeasure

type SimilarityMeasure interface {
	Measure(x, y types.Signature) float64
}

type Store

type Store interface {
	GetSignatureByVectorID(ctx context.Context, vectorID types.VectorID) (types.Signature, error)
	GetVectorsIDInBucket(ctx context.Context, bucketID types.Bucket) (chan types.VectorID, error)
	UpdateSignatureByVectorID(ctx context.Context, vectorID types.VectorID, signature types.Signature) error
	UpdateBucketsByVectorID(ctx context.Context, vectorID types.VectorID, bucketsID types.Buckets) error
}

Jump to

Keyboard shortcuts

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