Class TableRegularIndexDescriptor
java.lang.Object
com.datastax.astra.client.tables.definition.indexes.TableIndexDescriptor<TableRegularIndexDefinition>
com.datastax.astra.client.tables.definition.indexes.TableRegularIndexDescriptor
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.protectedConstructor that accepts a set of index options. -
Method Summary
Modifier and TypeMethodDescriptionSets the index definition for the table.Sets the name of the table.Methods inherited from class com.datastax.astra.client.tables.definition.indexes.TableIndexDescriptor
mapImpl, toString
-
Constructor Details
-
TableRegularIndexDescriptor
public TableRegularIndexDescriptor()The default name for the index. -
TableRegularIndexDescriptor
Constructor that accepts a set of index options.- Parameters:
definition- the index options to use.
-
-
Method Details
-
name
Description copied from class:TableIndexDescriptorSets the name of the table.- Overrides:
namein classTableIndexDescriptor<TableRegularIndexDefinition>- Parameters:
name- the name of the table.- Returns:
- a new instance with the updated table name.
-
definition
Description copied from class:TableIndexDescriptorSets the index definition for the table.- Overrides:
definitionin classTableIndexDescriptor<TableRegularIndexDefinition>- Parameters:
def- theTableIndexDefinitiondefining the index options for the table.- Returns:
- a new instance with the updated definition.
-