Class TableIndexDefinitionOptions
java.lang.Object
com.datastax.astra.client.tables.definition.indexes.TableIndexDefinitionOptions
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionascii(boolean ascii) Sets the ASCII flag for the index.caseSensitive(boolean caseSensitive) Sets the case sensitivity flag for the index.normalize(boolean normalize) Sets the normalization flag for the index.
-
Constructor Details
-
TableIndexDefinitionOptions
public TableIndexDefinitionOptions()Default constructor.
-
-
Method Details
-
ascii
Sets the ASCII flag for the index.- Parameters:
ascii-trueto enable ASCII encoding,falseto disable it.- Returns:
- the current instance for method chaining.
-
normalize
Sets the normalization flag for the index.- Parameters:
normalize-trueto enable normalization,falseto disable it.- Returns:
- the current instance for method chaining.
-
caseSensitive
Sets the case sensitivity flag for the index.- Parameters:
caseSensitive-trueto enable case sensitivity,falseto disable it.- Returns:
- the current instance for method chaining.
-