Class TableUpdateRequest.AddTableIndexRequest
java.lang.Object
org.apache.gravitino.dto.requests.TableUpdateRequest.AddTableIndexRequest
- All Implemented Interfaces:
TableUpdateRequest,RESTMessage,RESTRequest
- Enclosing interface:
- TableUpdateRequest
public static class TableUpdateRequest.AddTableIndexRequest
extends Object
implements TableUpdateRequest
Represents a request to add an index to a table.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.dto.requests.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 Summary
ConstructorsConstructorDescriptionDefault constructor for Jackson deserialization.AddTableIndexRequest(Index.IndexType type, String name, String[][] fieldNames) The constructor of the add table index request. -
Method Summary
Modifier and TypeMethodDescriptionThe table change that is requested.voidvalidate()Validates the request.
-
Constructor Details
-
AddTableIndexRequest
public AddTableIndexRequest()Default constructor for Jackson deserialization. -
AddTableIndexRequest
The constructor of the add table index request.- Parameters:
type- The type of the indexname- The name of the indexfieldNames- The field names under the table contained in the index.
-
-
Method Details
-
validate
Validates the request.- Specified by:
validatein interfaceRESTMessage- Throws:
IllegalArgumentException- If the request is invalid, this exception is thrown.
-
tableChange
Description copied from interface:TableUpdateRequestThe table change that is requested.- Specified by:
tableChangein interfaceTableUpdateRequest- Returns:
- An instance of TableChange.
-