Record Class VectorIndexMetadata
java.lang.Object
java.lang.Record
io.micronaut.data.model.schema.sql.metadata.VectorIndexMetadata
- Record Components:
vectorIndexType- The index typedistanceType- The distance metricaccuracy- Target accuracysparse- Whether sparse vector storage is requested
@Internal
public record VectorIndexMetadata(@NonNull VectorIndexType vectorIndexType, @NonNull VectorIndexType.DistanceType distanceType, int accuracy, boolean sparse)
extends Record
Vector index metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionVectorIndexMetadata(@NonNull VectorIndexType vectorIndexType, @NonNull VectorIndexType.DistanceType distanceType, int accuracy, boolean sparse) Creates an instance of aVectorIndexMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaccuracy()Returns the value of theaccuracyrecord component.@NonNull VectorIndexType.DistanceTypeReturns the value of thedistanceTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleansparse()Returns the value of thesparserecord component.final StringtoString()Returns a string representation of this record class.@NonNull VectorIndexTypeReturns the value of thevectorIndexTyperecord component.
-
Constructor Details
-
VectorIndexMetadata
public VectorIndexMetadata(@NonNull VectorIndexType vectorIndexType, @NonNull VectorIndexType.DistanceType distanceType, int accuracy, boolean sparse) Creates an instance of aVectorIndexMetadatarecord class.- Parameters:
vectorIndexType- the value for thevectorIndexTyperecord componentdistanceType- the value for thedistanceTyperecord componentaccuracy- the value for theaccuracyrecord componentsparse- the value for thesparserecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
vectorIndexType
Returns the value of thevectorIndexTyperecord component.- Returns:
- the value of the
vectorIndexTyperecord component
-
distanceType
Returns the value of thedistanceTyperecord component.- Returns:
- the value of the
distanceTyperecord component
-
accuracy
-
sparse
-