Class DropResponse
java.lang.Object
org.apache.gravitino.dto.responses.BaseResponse
org.apache.gravitino.dto.responses.DropResponse
- All Implemented Interfaces:
RESTMessage,RESTResponse
Represents a response for a drop operation.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for DropResponse (used by Jackson deserializer).DropResponse(Boolean dropped) Constructor for DropResponse.DropResponse(Boolean dropped, Boolean deleted) Constructor for DropResponse with both dropped and deleted fields. -
Method Summary
-
Constructor Details
-
DropResponse
Constructor for DropResponse.- Parameters:
dropped- Whether the drop operation was successful.
-
DropResponse
Constructor for DropResponse with both dropped and deleted fields.- Parameters:
dropped- Whether the drop operation was successful.deleted- Whether the delete operation was successful (used for backward compatibility).
-
DropResponse
public DropResponse()Default constructor for DropResponse (used by Jackson deserializer).
-
-
Method Details
-
dropped
Returns whether the drop operation was successful.- Returns:
- True if the drop operation was successful, otherwise false.
-
deleted
Returns whether the delete operation was successful. This method will only be called in test.- Returns:
- True if the delete operation was successful, otherwise false.
-
validate
public void validate()Description copied from class:BaseResponseValidates the response code.- Specified by:
validatein interfaceRESTMessage- Overrides:
validatein classBaseResponse
-