Package app.ductape.sdk.vector.types
Record Class VectorInterfaceTypes.VectorIndexInfo
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorInterfaceTypes.VectorIndexInfo
- Enclosing class:
- VectorInterfaceTypes
public static record VectorInterfaceTypes.VectorIndexInfo(String name, int dimensions, VectorTypes.DistanceMetric metric, long vectorCount, VectorInterfaceTypes.IndexStatus status, String podType, Integer replicas, Long createdAt)
extends Record
TS
IVectorIndexInfo-
Constructor Summary
ConstructorsConstructorDescriptionVectorIndexInfo(String name, int dimensions, VectorTypes.DistanceMetric metric, long vectorCount, VectorInterfaceTypes.IndexStatus status, String podType, Integer replicas, Long createdAt) Creates an instance of aVectorIndexInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.intReturns 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.podType()Returns the value of thepodTyperecord component.replicas()Returns the value of thereplicasrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevectorCountrecord component.
-
Constructor Details
-
VectorIndexInfo
public VectorIndexInfo(String name, int dimensions, VectorTypes.DistanceMetric metric, long vectorCount, VectorInterfaceTypes.IndexStatus status, String podType, Integer replicas, Long createdAt) Creates an instance of aVectorIndexInforecord class.- Parameters:
name- the value for thenamerecord componentdimensions- the value for thedimensionsrecord componentmetric- the value for themetricrecord componentvectorCount- the value for thevectorCountrecord componentstatus- the value for thestatusrecord componentpodType- the value for thepodTyperecord componentreplicas- the value for thereplicasrecord componentcreatedAt- the value for thecreatedAtrecord 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
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
podType
Returns the value of thepodTyperecord component.- Returns:
- the value of the
podTyperecord component
-
replicas
Returns the value of thereplicasrecord component.- Returns:
- the value of the
replicasrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-