Package app.ductape.sdk.vector.types
Record Class VectorConnectionTypes.VectorConfig
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorConnectionTypes.VectorConfig
- Enclosing class:
- VectorConnectionTypes
public static record VectorConnectionTypes.VectorConfig(String tag, String name, String description, VectorTypes.VectorDBType type, int dimensions, VectorTypes.DistanceMetric metric, VectorTypes.VectorIndexType indexType, List<VectorConnectionTypes.VectorEnvConfig> envs)
extends Record
TS
IVectorConfig-
Constructor Summary
ConstructorsConstructorDescriptionVectorConfig(String tag, String name, String description, VectorTypes.VectorDBType type, int dimensions, VectorTypes.DistanceMetric metric, VectorTypes.VectorIndexType indexType, List<VectorConnectionTypes.VectorEnvConfig> envs) Creates an instance of aVectorConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.intReturns the value of thedimensionsrecord component.envs()Returns the value of theenvsrecord 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 theindexTyperecord component.metric()Returns the value of themetricrecord component.name()Returns the value of thenamerecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
VectorConfig
public VectorConfig(String tag, String name, String description, VectorTypes.VectorDBType type, int dimensions, VectorTypes.DistanceMetric metric, VectorTypes.VectorIndexType indexType, List<VectorConnectionTypes.VectorEnvConfig> envs) Creates an instance of aVectorConfigrecord class.- Parameters:
tag- the value for thetagrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenttype- the value for thetyperecord componentdimensions- the value for thedimensionsrecord componentmetric- the value for themetricrecord componentindexType- the value for theindexTyperecord componentenvs- the value for theenvsrecord 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 '=='. -
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord 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
-
indexType
Returns the value of theindexTyperecord component.- Returns:
- the value of the
indexTyperecord component
-
envs
Returns the value of theenvsrecord component.- Returns:
- the value of the
envsrecord component
-