public static class TableUpdateRequest.AddTableIndexRequest extends java.lang.Object implements TableUpdateRequest
TableUpdateRequest.AddTableColumnRequest, TableUpdateRequest.AddTableIndexRequest, TableUpdateRequest.DeleteTableColumnRequest, TableUpdateRequest.DeleteTableIndexRequest, TableUpdateRequest.RemoveTablePropertyRequest, TableUpdateRequest.RenameTableColumnRequest, TableUpdateRequest.RenameTableRequest, TableUpdateRequest.SetTablePropertyRequest, TableUpdateRequest.UpdateColumnAutoIncrementRequest, TableUpdateRequest.UpdateTableColumnCommentRequest, TableUpdateRequest.UpdateTableColumnDefaultValueRequest, TableUpdateRequest.UpdateTableColumnNullabilityRequest, TableUpdateRequest.UpdateTableColumnPositionRequest, TableUpdateRequest.UpdateTableColumnTypeRequest, TableUpdateRequest.UpdateTableCommentRequest
Constructor and Description |
---|
AddTableIndexRequest()
Default constructor for Jackson deserialization.
|
AddTableIndexRequest(Index.IndexType type,
java.lang.String name,
java.lang.String[][] fieldNames)
The constructor of the add table index request.
|
Modifier and Type | Method and Description |
---|---|
TableChange |
tableChange()
The table change that is requested.
|
void |
validate()
Validates the request.
|
public AddTableIndexRequest()
public AddTableIndexRequest(Index.IndexType type, java.lang.String name, java.lang.String[][] fieldNames)
type
- The type of the indexname
- The name of the indexfieldNames
- The field names under the table contained in the index.public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
java.lang.IllegalArgumentException
- If the request is invalid, this exception is thrown.public TableChange tableChange()
TableUpdateRequest
tableChange
in interface TableUpdateRequest