AnnoyIndex class

Annoy index

Properties

dimension int
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
latefinal
type IndexType
final

Methods

close() → void
Close the index
getItemVector(int itemId) Float32List
Get item vector with id
getNearest(Float32List vector, int nResults, {int searchK = -1, bool includeDistance = false}) AnnoyIndexSearchResult
Get nearest items to the given vector
getNearestToItem(int itemId, int nResults, {int searchK = -1, bool includeDistance = false}) AnnoyIndexSearchResult
Get nearest items to the given item id
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited