Class TableIndexDescriptor
java.lang.Object
com.datastax.astra.client.tables.definition.indexes.TableIndexDescriptor
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.
-
Constructor Summary
ConstructorDescriptionDefault constructor for serialization/deserialization purposes.TableIndexDescriptor
(String name) Constructs aTableIndexDescriptor
with the specified table name. -
Method Summary
Modifier and TypeMethodDescriptionSets the index definition for the table.Sets the name of the table.toString()
Converts the object to a string using theRowSerializer
.
-
Constructor Details
-
TableIndexDescriptor
public TableIndexDescriptor()Default constructor for serialization/deserialization purposes. -
TableIndexDescriptor
Constructs aTableIndexDescriptor
with the specified table name.- Parameters:
name
- the name of the table.
-
-
Method Details
-
name
Sets the name of the table.- Parameters:
name
- the name of the table.- Returns:
- the current instance for method chaining.
-
definition
Sets the index definition for the table.- Parameters:
def
- theTableIndexDefinition
defining the index options for the table.- Returns:
- the current instance for method chaining.
-
toString
Converts the object to a string using theRowSerializer
.
-