ModelHnswParams class

Describes HNSW index parameters for a float vector property.

Constructors

ModelHnswParams({required int dimensions, int? neighborsPerNode, int? indexingSearchCount, int? flags, int? distanceType, double? reparationBacklinkProbability, int? vectorCacheHintSizeKB})
Create an instance. For use from generated code.

Properties

dimensions → int
See HnswIndex.dimensions.
final
distanceType → int?
See HnswIndex.distanceType.
final
flags → int?
See HnswIndex.flags.
final
hashCode → int
The hash code for this object.
no setterinherited
indexingSearchCount → int?
See HnswIndex.indexingSearchCount.
final
neighborsPerNode → int?
See HnswIndex.neighborsPerNode.
final
reparationBacklinkProbability → double?
See HnswIndex.reparationBacklinkProbability.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
vectorCacheHintSizeKB → int?
See HnswIndex.vectorCacheHintSizeKB.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCodeString(String libraryPrefix) → String
Convert to code string for generated code.
toMap() → Map<String, Object>
Convert to string map to store in entity info cache file.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

checkArgument(Object argument, bool expression, String name, String message) → void
If expression does not evaluate to true throws an ArgumentError using the given argument, name and message.
fromAnnotation(HnswIndex hnsw) → ModelHnswParams
Create with values from an HnswIndex annotation.
fromMap(Map<String, dynamic>? map) → ModelHnswParams?
Create from a string map created by toMap.