Class ClusteredMetadataVectorTable.Builder

java.lang.Object
com.dtsx.astra.sdk.cassio.ClusteredMetadataVectorTable.Builder
Enclosing class:
ClusteredMetadataVectorTable

public static class ClusteredMetadataVectorTable.Builder extends Object
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 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

      public ClusteredMetadataVectorTable.Builder withKeyspaceName(String keyspaceName)
      Sets the keyspace name.
      Parameters:
      keyspaceName - The name of the keyspace to be used.
      Returns:
      The current Builder instance for chaining.
    • withTableName

      public ClusteredMetadataVectorTable.Builder withTableName(String tableName)
      Sets the table name.
      Parameters:
      tableName - The name of the table to be used.
      Returns:
      The current Builder instance for chaining.
    • withVectorDimension

      public ClusteredMetadataVectorTable.Builder withVectorDimension(Integer vectorDimension)
      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.