Package app.ductape.sdk.vector.types
Record Class VectorConnectionTypes.VectorConnectionContext
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorConnectionTypes.VectorConnectionContext
- Enclosing class:
- VectorConnectionTypes
public static record VectorConnectionTypes.VectorConnectionContext(String vector, String env, String product, VectorTypes.VectorDBType type, String endpoint, String index, String namespace, int dimensions, VectorTypes.DistanceMetric metric, boolean connected)
extends Record
TS
IVectorConnectionContext-
Constructor Summary
ConstructorsConstructorDescriptionVectorConnectionContext(String vector, String env, String product, VectorTypes.VectorDBType type, String endpoint, String index, String namespace, int dimensions, VectorTypes.DistanceMetric metric, boolean connected) Creates an instance of aVectorConnectionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theconnectedrecord component.intReturns the value of thedimensionsrecord component.endpoint()Returns the value of theendpointrecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.index()Returns the value of theindexrecord component.metric()Returns the value of themetricrecord component.Returns the value of thenamespacerecord component.product()Returns the value of theproductrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.vector()Returns the value of thevectorrecord component.
-
Constructor Details
-
VectorConnectionContext
public VectorConnectionContext(String vector, String env, String product, VectorTypes.VectorDBType type, String endpoint, String index, String namespace, int dimensions, VectorTypes.DistanceMetric metric, boolean connected) Creates an instance of aVectorConnectionContextrecord class.- Parameters:
vector- the value for thevectorrecord componentenv- the value for theenvrecord componentproduct- the value for theproductrecord componenttype- the value for thetyperecord componentendpoint- the value for theendpointrecord componentindex- the value for theindexrecord componentnamespace- the value for thenamespacerecord componentdimensions- the value for thedimensionsrecord componentmetric- the value for themetricrecord componentconnected- the value for theconnectedrecord 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 '=='. -
vector
Returns the value of thevectorrecord component.- Returns:
- the value of the
vectorrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord 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
-
connected
public boolean connected()Returns the value of theconnectedrecord component.- Returns:
- the value of the
connectedrecord component
-