Class TableIndexDefinitionOptions

java.lang.Object
com.datastax.astra.client.tables.definition.indexes.TableIndexDefinitionOptions

public class TableIndexDefinitionOptions extends Object
Represents the options for table index definitions, allowing configuration of index characteristics. This class uses Boolean to allow flags to be null, providing a tri-state logic (true, false, or unspecified).

The available options are:

  • ascii: Indicates whether the index should consider ASCII encoding.
  • normalize: Specifies if the index should normalize data.
  • caseSensitive: Determines if the index should be case-sensitive.
  • Constructor Details

    • TableIndexDefinitionOptions

      public TableIndexDefinitionOptions()
      Default constructor.
  • Method Details

    • ascii

      public TableIndexDefinitionOptions ascii(boolean ascii)
      Sets the ASCII flag for the index.
      Parameters:
      ascii - true to enable ASCII encoding, false to disable it.
      Returns:
      the current instance for method chaining.
    • normalize

      public TableIndexDefinitionOptions normalize(boolean normalize)
      Sets the normalization flag for the index.
      Parameters:
      normalize - true to enable normalization, false to disable it.
      Returns:
      the current instance for method chaining.
    • caseSensitive

      public TableIndexDefinitionOptions caseSensitive(boolean caseSensitive)
      Sets the case sensitivity flag for the index.
      Parameters:
      caseSensitive - true to enable case sensitivity, false to disable it.
      Returns:
      the current instance for method chaining.