SerializableModelIndexDefinition class
The definition of an index for a file, that is also stored in the database.
Constructors
-
SerializableModelIndexDefinition.new({required String name, required String type, required bool unique, required List<
String> fields, VectorDistanceFunction? vectorDistanceFunction, Map<String, String> ? parameters}) - Create a new SerializableModelIndexDefinition.
Properties
-
fields
→ List<
String> -
The fields this index includes.
The order of the fields matters.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isVectorIndex → bool
-
Whether the index is of vector type.
no setter
- name → String
-
The name of the index.
final
-
parameters
→ Map<
String, String> ? -
The parameters of the index, if any. Used for Vector indexes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The type of this index.
Usually this is
btree
.final - unique → bool
-
Whether the fields of this index should be unique.
final
- vectorDistanceFunction → VectorDistanceFunction?
-
The vector index distance function, if it is a vector index.
final
Methods
-
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