Package app.ductape.sdk.vector.types
Record Class VectorInterfaceTypes.CreateIndexOptions
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorInterfaceTypes.CreateIndexOptions
- Enclosing class:
- VectorInterfaceTypes
public static record VectorInterfaceTypes.CreateIndexOptions(String name, int dimensions, VectorTypes.DistanceMetric metric, String region, String podType, Integer replicas, Object options)
extends Record
TS
ICreateIndexOptions-
Constructor Summary
ConstructorsConstructorDescriptionCreateIndexOptions(String name, int dimensions, VectorTypes.DistanceMetric metric, String region, String podType, Integer replicas, Object options) Creates an instance of aCreateIndexOptionsrecord 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.options()Returns the value of theoptionsrecord component.podType()Returns the value of thepodTyperecord component.region()Returns the value of theregionrecord component.replicas()Returns the value of thereplicasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateIndexOptions
public CreateIndexOptions(String name, int dimensions, VectorTypes.DistanceMetric metric, String region, String podType, Integer replicas, Object options) Creates an instance of aCreateIndexOptionsrecord class.- Parameters:
name- the value for thenamerecord componentdimensions- the value for thedimensionsrecord componentmetric- the value for themetricrecord componentregion- the value for theregionrecord componentpodType- the value for thepodTyperecord componentreplicas- the value for thereplicasrecord componentoptions- the value for theoptionsrecord 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
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord 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
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-