Package app.ductape.sdk.vector.types
Record Class VectorInterfaceTypes.VectorIndexStats
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorInterfaceTypes.VectorIndexStats
- Enclosing class:
- VectorInterfaceTypes
public static record VectorInterfaceTypes.VectorIndexStats(long vectorCount, Double indexFullness, Map<String,VectorInterfaceTypes.VectorIndexStats.NamespaceVectorCount> namespaces, int dimensions)
extends Record
TS
IVectorIndexStats-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionVectorIndexStats(long vectorCount, Double indexFullness, Map<String, VectorInterfaceTypes.VectorIndexStats.NamespaceVectorCount> namespaces, int dimensions) Creates an instance of aVectorIndexStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedimensionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexFullnessrecord component.Returns the value of thenamespacesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevectorCountrecord component.
-
Constructor Details
-
VectorIndexStats
public VectorIndexStats(long vectorCount, Double indexFullness, Map<String, VectorInterfaceTypes.VectorIndexStats.NamespaceVectorCount> namespaces, int dimensions) Creates an instance of aVectorIndexStatsrecord class.- Parameters:
vectorCount- the value for thevectorCountrecord componentindexFullness- the value for theindexFullnessrecord componentnamespaces- the value for thenamespacesrecord componentdimensions- the value for thedimensionsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
vectorCount
public long vectorCount()Returns the value of thevectorCountrecord component.- Returns:
- the value of the
vectorCountrecord component
-
indexFullness
Returns the value of theindexFullnessrecord component.- Returns:
- the value of the
indexFullnessrecord component
-
namespaces
Returns the value of thenamespacesrecord component.- Returns:
- the value of the
namespacesrecord component
-
dimensions
public int dimensions()Returns the value of thedimensionsrecord component.- Returns:
- the value of the
dimensionsrecord component
-