-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Discovery): Add GenericQueryAggregation classes
This class acts as a catch-all in cases where we can't identify the returned query aggregation. This prevents circular deserialization in the adapter.
- Loading branch information
Showing
4 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
discovery/src/main/java/com/ibm/watson/discovery/v1/query/GenericQueryAggregation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.ibm.watson.discovery.v1.query; | ||
|
||
import com.ibm.watson.discovery.v1.model.QueryAggregation; | ||
|
||
/** | ||
* Catch-all class for query aggregations which can't be identified and deserialized to a known class. | ||
*/ | ||
public class GenericQueryAggregation extends QueryAggregation { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
discovery/src/main/java/com/ibm/watson/discovery/v2/query/GenericQueryAggregation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.ibm.watson.discovery.v2.query; | ||
|
||
import com.ibm.watson.discovery.v2.model.QueryAggregation; | ||
|
||
/** | ||
* Catch-all class for query aggregations which can't be identified and deserialized to a known class. | ||
*/ | ||
public class GenericQueryAggregation extends QueryAggregation { | ||
} |