Class AddPartitionsRequest

java.lang.Object
org.apache.gravitino.dto.requests.AddPartitionsRequest
All Implemented Interfaces:
RESTMessage, RESTRequest

public class AddPartitionsRequest extends Object implements RESTRequest
Request to add partitions to a table.
  • Constructor Details

    • AddPartitionsRequest

      public AddPartitionsRequest()
      Default constructor for Jackson.
    • AddPartitionsRequest

      public AddPartitionsRequest(PartitionDTO[] partitions)
      Constructor for the request.
      Parameters:
      partitions - The partitions to add.
  • Method Details

    • validate

      public void validate() throws IllegalArgumentException
      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 interface RESTMessage
      Throws:
      IllegalArgumentException