Class StatisticsUpdateRequest
java.lang.Object
org.apache.gravitino.dto.requests.StatisticsUpdateRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Represents a request to update statistics.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for deserialization.StatisticsUpdateRequest
(Map<String, StatisticValue<?>> updates) Creates a new StatisticsUpdateRequest with the specified updates. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
Constructor Details
-
StatisticsUpdateRequest
Creates a new StatisticsUpdateRequest with the specified updates.- Parameters:
updates
- The statistics to update.
-
StatisticsUpdateRequest
public StatisticsUpdateRequest()Default constructor for deserialization.
-
-
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
-