Class TableTextIndexDescriptor
java.lang.Object
com.datastax.astra.client.tables.definition.indexes.TableIndexDescriptor<TableTextIndexDefinition>
com.datastax.astra.client.tables.definition.indexes.TableTextIndexDescriptor
Represents a descriptor for a table index, including the table's name and associated index options.
This class is designed for use in scenarios such as serialization/deserialization with libraries
like Jackson and for method chaining in fluent-style APIs.
-
Field Summary
Fields inherited from class com.datastax.astra.client.tables.definition.indexes.TableIndexDescriptor
constructor, definition, indexType, name
-
Constructor Summary
ConstructorsModifierConstructorDescriptionThe default name for the index.protected
TableTextIndexDescriptor
(TableTextIndexDefinition definition) Constructor that accepts a set of index options. -
Method Summary
Modifier and TypeMethodDescriptionAdds a definitions to the index.Adds a name to the index.Methods inherited from class com.datastax.astra.client.tables.definition.indexes.TableIndexDescriptor
mapImpl, toString
-
Constructor Details
-
TableTextIndexDescriptor
public TableTextIndexDescriptor()The default name for the index. -
TableTextIndexDescriptor
Constructor that accepts a set of index options.- Parameters:
definition
- the index options to use.
-
-
Method Details
-
name
Adds a name to the index.- Overrides:
name
in classTableIndexDescriptor<TableTextIndexDefinition>
- Parameters:
name
- the name of the table.- Returns:
- the current instance of
TableTextIndexDescriptor
.
-
definition
Adds a definitions to the index.- Overrides:
definition
in classTableIndexDescriptor<TableTextIndexDefinition>
- Parameters:
def
- the definition of the index.- Returns:
- the current instance of
TableTextIndexDescriptor
.
-