Class AddPartitionsRequest
java.lang.Object
org.apache.gravitino.dto.requests.AddPartitionsRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Request to add partitions to a table.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Jackson.AddPartitionsRequest
(PartitionDTO[] partitions) Constructor for the request. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
Constructor Details
-
AddPartitionsRequest
public AddPartitionsRequest()Default constructor for Jackson. -
AddPartitionsRequest
Constructor for the request.- Parameters:
partitions
- The partitions to add.
-
-
Method Details
-
validate
Description copied from interface:RESTMessage
Ensures that a constructed instance of a REST message is valid according to the REST spec.This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
-