Class AlterTableOptions
java.lang.Object
com.datastax.astra.client.core.options.BaseOptions<AlterTableOptions>
com.datastax.astra.client.tables.commands.options.AlterTableOptions
- All Implemented Interfaces:
- Cloneable
Represents options for altering a table in a database schema.
 Extends 
BaseOptions to provide additional functionality for table alteration commands.
 
 This class supports a fluent, chainable API using the Accessors annotation.
 Common options include specifying whether to include an "IF EXISTS" condition during the operation.
 
Example usage:
 
 AlterTableOptions options = new AlterTableOptions()
     .ifExists(true);
 
 - 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final AlterTableOptionsA predefined instance ofAlterTableOptionswith the "IF EXISTS" condition enabled.Fields inherited from class com.datastax.astra.client.core.options.BaseOptionscommandType, dataAPIClientOptions, serializer, token
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a newAlterTableOptionsinstance with default settings.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanRetrieves the value of the "IF EXISTS" condition.Methods inherited from class com.datastax.astra.client.core.options.BaseOptionsadminAdditionalHeaders, clone, commandType, dataAPIClientOptions, databaseAdditionalHeaders, embeddingApiKey, embeddingAuthProvider, getCommandType, getDataAPIClientOptions, getRequestTimeout, getRequestTimeout, getSerializer, getTimeout, getTimeout, getToken, httpClientOptions, registerObserver, rerankingApiKey, rerankingAuthProvider, serializer, timeout, timeout, timeout, timeoutOptions, token, toString, unregisterObserver
- 
Field Details- 
IF_EXISTSA predefined instance ofAlterTableOptionswith the "IF EXISTS" condition enabled. This improves syntax for commonly used configurations.
 
- 
- 
Constructor Details- 
AlterTableOptionspublic AlterTableOptions()Constructs a newAlterTableOptionsinstance with default settings. Initializes the options withCommandType.TABLE_ADMINand the default table serializer.
 
- 
- 
Method Details- 
isIfExistspublic boolean isIfExists()Retrieves the value of the "IF EXISTS" condition. This condition determines whether the operation should check for the existence of the table.- Returns:
- trueif the "IF EXISTS" condition is enabled,- falseotherwise
 
 
-