Package com.dtsx.astra.sdk.cassio
Class ClusteredMetadataVectorTable.Builder
java.lang.Object
com.dtsx.astra.sdk.cassio.ClusteredMetadataVectorTable.Builder
- Enclosing class:
ClusteredMetadataVectorTable
Builder class for creating instances of
ClusteredMetadataVectorTable.
This class follows the builder pattern to allow setting various parameters
before creating an instance of ClusteredMetadataVectorTable.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new instance of ClusteredMetadataVectorCassandraTable with the current builder settings.withKeyspaceName(String keyspaceName) Sets the keyspace name.withMetric(CassandraSimilarityMetric metric) Sets the similarity metric.withSession(com.datastax.oss.driver.api.core.CqlSession session) Sets the CqlSession.withTableName(String tableName) Sets the table name.withVectorDimension(Integer vectorDimension) Sets the vector dimension.
-
Constructor Details
-
Builder
public Builder()Default constructor for Builder.
-
-
Method Details
-
withSession
public ClusteredMetadataVectorTable.Builder withSession(com.datastax.oss.driver.api.core.CqlSession session) Sets the CqlSession.- Parameters:
session- The CqlSession to be used by the ClusteredMetadataVectorCassandraTable.- Returns:
- The current Builder instance for chaining.
-
withKeyspaceName
Sets the keyspace name.- Parameters:
keyspaceName- The name of the keyspace to be used.- Returns:
- The current Builder instance for chaining.
-
withTableName
Sets the table name.- Parameters:
tableName- The name of the table to be used.- Returns:
- The current Builder instance for chaining.
-
withVectorDimension
Sets the vector dimension.- Parameters:
vectorDimension- The vector dimension to be used.- Returns:
- The current Builder instance for chaining.
-
withMetric
Sets the similarity metric.- Parameters:
metric- The SimilarityMetric to be used.- Returns:
- The current Builder instance for chaining.
-
build
Creates a new instance of ClusteredMetadataVectorCassandraTable with the current builder settings.- Returns:
- A new instance of ClusteredMetadataVectorCassandraTable.
-