Package app.ductape.sdk.vector.types
Record Class VectorConnectionTypes.VectorConnectionResult
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorConnectionTypes.VectorConnectionResult
- Enclosing class:
- VectorConnectionTypes
public static record VectorConnectionTypes.VectorConnectionResult(boolean connected, String index, Integer dimensions, Long vectorCount, Long latency, String error)
extends Record
TS
IVectorConnectionResult-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theconnectedrecord component.Returns the value of thedimensionsrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.index()Returns the value of theindexrecord component.latency()Returns the value of thelatencyrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevectorCountrecord component.
-
Constructor Details
-
VectorConnectionResult
public VectorConnectionResult(boolean connected, String index, Integer dimensions, Long vectorCount, Long latency, String error) Creates an instance of aVectorConnectionResultrecord class.- Parameters:
connected- the value for theconnectedrecord componentindex- the value for theindexrecord componentdimensions- the value for thedimensionsrecord componentvectorCount- the value for thevectorCountrecord componentlatency- the value for thelatencyrecord componenterror- the value for theerrorrecord 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 '=='. -
connected
public boolean connected()Returns the value of theconnectedrecord component.- Returns:
- the value of the
connectedrecord component
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
dimensions
Returns the value of thedimensionsrecord component.- Returns:
- the value of the
dimensionsrecord component
-
vectorCount
Returns the value of thevectorCountrecord component.- Returns:
- the value of the
vectorCountrecord component
-
latency
Returns the value of thelatencyrecord component.- Returns:
- the value of the
latencyrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-