Package app.ductape.sdk.vector.types
Record Class VectorConnectionTypes.TestConnectionIndexInfo
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorConnectionTypes.TestConnectionIndexInfo
- Enclosing class:
- VectorConnectionTypes
public static record VectorConnectionTypes.TestConnectionIndexInfo(String name, int dimensions, String metric, long vectorCount)
extends Record
Nested
index on TS IVectorTestConnectionResult-
Constructor Summary
ConstructorsConstructorDescriptionTestConnectionIndexInfo(String name, int dimensions, String metric, long vectorCount) Creates an instance of aTestConnectionIndexInforecord 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.metric()Returns the value of themetricrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevectorCountrecord component.
-
Constructor Details
-
TestConnectionIndexInfo
Creates an instance of aTestConnectionIndexInforecord class.- Parameters:
name- the value for thenamerecord componentdimensions- the value for thedimensionsrecord componentmetric- the value for themetricrecord componentvectorCount- the value for thevectorCountrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
dimensions
public int dimensions()Returns the value of thedimensionsrecord component.- Returns:
- the value of the
dimensionsrecord component
-
metric
Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-
vectorCount
public long vectorCount()Returns the value of thevectorCountrecord component.- Returns:
- the value of the
vectorCountrecord component
-