Class ViewCreateRequest
java.lang.Object
org.apache.gravitino.dto.requests.ViewCreateRequest
- All Implemented Interfaces:
RESTMessage,RESTRequest
Represents a request to create a view.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Jackson deserialization.ViewCreateRequest(String name, String comment, ColumnDTO[] columns, RepresentationDTO[] representations, String defaultCatalog, String defaultSchema, Map<String, String> properties) Creates a newViewCreateRequest. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
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 newViewCreateRequest.- 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
Description copied from interface:RESTMessageEnsures 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:
validatein interfaceRESTMessage- Throws:
IllegalArgumentException
-