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 QueryAggregation
deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
Deprecated.Deserializes JSON and converts it to the appropriateQueryAggregation
subclass.
-
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 appropriateQueryAggregation
subclass.- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<QueryAggregation>
- Parameters:
json
- the JSON data being deserializedtypeOfT
- the type to deserialize to, which should beQueryAggregation
context
- additional information about the deserialization state- Returns:
- the appropriate
QueryAggregation
subclass - Throws:
com.google.gson.JsonParseException
- signals that there has been an issue parsing the JSON
-