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
-
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
-true
to enable ASCII encoding,false
to disable it.- Returns:
- the current instance for method chaining.
-
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
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.
-