Class TableDescriptor

java.lang.Object
com.datastax.astra.client.tables.definition.TableDescriptor

public class TableDescriptor extends Object
Represents the Table definition with its name and metadata.
  • Constructor Details

    • TableDescriptor

      public TableDescriptor()
      Default constructor.
    • TableDescriptor

      public TableDescriptor(String name)
      Default constructor.
      Parameters:
      name - the name of the table
  • Method Details

    • name

      public TableDescriptor name(String name)
      Set the name of the table.
      Parameters:
      name - the name of the table
      Returns:
      the descriptor
    • definition

      public TableDescriptor definition(TableDefinition def)
      Set the definition of the table.
      Parameters:
      def - the definition of the table
      Returns:
      the descriptor
    • toString

      public String toString()
      Overrides:
      toString in class Object