Class TableCreateRequest
java.lang.Object
org.apache.gravitino.dto.requests.TableCreateRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Represents a request to create a table.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Jackson deserialization.TableCreateRequest
(String name, String comment, ColumnDTO[] columns, Map<String, String> properties, SortOrderDTO[] sortOrders, DistributionDTO distribution, Partitioning[] partitioning, IndexDTO[] indexes) Creates a new TableCreateRequest. -
Method Summary
-
Constructor Details
-
TableCreateRequest
public TableCreateRequest()Default constructor for Jackson deserialization. -
TableCreateRequest
public TableCreateRequest(String name, @Nullable String comment, ColumnDTO[] columns, @Nullable Map<String, String> properties, @Nullable SortOrderDTO[] sortOrders, @Nullable DistributionDTO distribution, @Nullable Partitioning[] partitioning, @Nullable IndexDTO[] indexes) Creates a new TableCreateRequest.- Parameters:
name
- The name of the table.comment
- The comment of the table.columns
- The columns of the table.properties
- The properties of the table.sortOrders
- The sort orders of the table.distribution
- The distribution of the table.partitioning
- The partitioning of the table.indexes
- The indexes of the table.
-
-
Method Details
-
validate
Validates theTableCreateRequest
request.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
- If the request is invalid, this exception is thrown.
-