Class ViewCreateRequest

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

public class ViewCreateRequest extends Object implements RESTRequest
Represents a request to create a view.
  • Constructor Details

    • ViewCreateRequest

      public ViewCreateRequest()
      Default constructor for Jackson deserialization.
    • ViewCreateRequest

      public ViewCreateRequest(String name, @Nullable String comment, ColumnDTO[] columns, RepresentationDTO[] representations, @Nullable String defaultCatalog, @Nullable String defaultSchema, @Nullable Map<String,String> properties)
      Creates a new ViewCreateRequest.
      Parameters:
      name - The name of the view.
      comment - The comment of the view.
      columns - The output columns of the view.
      representations - The representations of the view.
      defaultCatalog - The default catalog used to resolve unqualified identifiers in view representations.
      defaultSchema - The default schema used to resolve unqualified identifiers in view representations.
      properties - The properties of the view.
  • 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