Class AggregationDeserializer
java.lang.Object
com.ibm.watson.discovery.v2.query.AggregationDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<QueryAggregation>
public class AggregationDeserializer extends Object implements com.google.gson.JsonDeserializer<QueryAggregation>
Deprecated.
This class has been replaced by logic inside of the QueryAggregation class.
Deserializer to transform JSON into a
QueryAggregation.-
Constructor Summary
Constructors Constructor Description AggregationDeserializer()Deprecated. -
Method Summary
Modifier and Type Method Description QueryAggregationdeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)Deprecated.Deserializes JSON and converts it to the appropriateQueryAggregationsubclass.
-
Constructor Details
-
AggregationDeserializer
public AggregationDeserializer()Deprecated.
-
-
Method Details
-
deserialize
public QueryAggregation deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseExceptionDeprecated.Deserializes JSON and converts it to the appropriateQueryAggregationsubclass.- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<QueryAggregation>- Parameters:
json- the JSON data being deserializedtypeOfT- the type to deserialize to, which should beQueryAggregationcontext- additional information about the deserialization state- Returns:
- the appropriate
QueryAggregationsubclass - Throws:
com.google.gson.JsonParseException- signals that there has been an issue parsing the JSON
-