Skip to content

Commit c661bf4

Browse files
jeff-arnapaparazzi0329
authored andcommitted
chore(hand edits): apply DiscoveryV2 hand edits
1 parent d8eff6e commit c661bf4

9 files changed

+120
-12
lines changed

discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryAggregation.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public class QueryAggregation extends GenericModel {
5656
protected String field;
5757
protected Long count;
5858
protected String name;
59-
protected List<QueryTermAggregationResult> results;
6059
protected Long interval;
6160
protected String path;
6261

@@ -130,17 +129,6 @@ public String getName() {
130129
return name;
131130
}
132131

133-
/**
134-
* Gets the results.
135-
*
136-
* <p>An array of results.
137-
*
138-
* @return the results
139-
*/
140-
public List<QueryTermAggregationResult> getResults() {
141-
return results;
142-
}
143-
144132
/**
145133
* Gets the interval.
146134
*

discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryAggregationQueryGroupByAggregation.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,23 @@
1212
*/
1313
package com.ibm.watson.discovery.v2.model;
1414

15+
import java.util.List;
16+
1517
/** Separates document results into groups that meet the conditions you specify. */
1618
public class QueryAggregationQueryGroupByAggregation extends QueryAggregation {
1719

20+
protected List<QueryGroupByAggregationResult> results;
21+
1822
protected QueryAggregationQueryGroupByAggregation() {}
23+
24+
/**
25+
* Gets the results.
26+
*
27+
* <p>An array of results.
28+
*
29+
* @return the results
30+
*/
31+
public List<QueryGroupByAggregationResult> getResults() {
32+
return results;
33+
}
1934
}

discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryAggregationQueryHistogramAggregation.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,26 @@
1212
*/
1313
package com.ibm.watson.discovery.v2.model;
1414

15+
import java.util.List;
16+
1517
/**
1618
* Numeric interval segments to categorize documents by using field values from a single numeric
1719
* field to describe the category.
1820
*/
1921
public class QueryAggregationQueryHistogramAggregation extends QueryAggregation {
2022

23+
protected List<QueryHistogramAggregationResult> results;
24+
2125
protected QueryAggregationQueryHistogramAggregation() {}
26+
27+
/**
28+
* Gets the results.
29+
*
30+
* <p>An array of results.
31+
*
32+
* @return the results
33+
*/
34+
public List<QueryHistogramAggregationResult> getResults() {
35+
return results;
36+
}
2237
}

discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryAggregationQueryPairAggregation.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,26 @@
1212
*/
1313
package com.ibm.watson.discovery.v2.model;
1414

15+
import java.util.List;
16+
1517
/**
1618
* Calculates relevancy values using combinations of document sets from results of the specified
1719
* pair of aggregations.
1820
*/
1921
public class QueryAggregationQueryPairAggregation extends QueryAggregation {
2022

23+
protected List<QueryPairAggregationResult> results;
24+
2125
protected QueryAggregationQueryPairAggregation() {}
26+
27+
/**
28+
* Gets the results.
29+
*
30+
* <p>An array of results.
31+
*
32+
* @return the results
33+
*/
34+
public List<QueryPairAggregationResult> getResults() {
35+
return results;
36+
}
2237
}

discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryAggregationQueryTermAggregation.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,23 @@
1212
*/
1313
package com.ibm.watson.discovery.v2.model;
1414

15+
import java.util.List;
16+
1517
/** Returns results from the field that is specified. */
1618
public class QueryAggregationQueryTermAggregation extends QueryAggregation {
1719

20+
protected List<QueryTermAggregationResult> results;
21+
1822
protected QueryAggregationQueryTermAggregation() {}
23+
24+
/**
25+
* Gets the results.
26+
*
27+
* <p>An array of results.
28+
*
29+
* @return the results
30+
*/
31+
public List<QueryTermAggregationResult> getResults() {
32+
return results;
33+
}
1934
}

discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryAggregationQueryTimesliceAggregation.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,23 @@
1212
*/
1313
package com.ibm.watson.discovery.v2.model;
1414

15+
import java.util.List;
16+
1517
/** A specialized histogram aggregation that uses dates to create interval segments. */
1618
public class QueryAggregationQueryTimesliceAggregation extends QueryAggregation {
1719

20+
protected List<QueryTimesliceAggregationResult> results;
21+
1822
protected QueryAggregationQueryTimesliceAggregation() {}
23+
24+
/**
25+
* Gets the results.
26+
*
27+
* <p>An array of results.
28+
*
29+
* @return the results
30+
*/
31+
public List<QueryTimesliceAggregationResult> getResults() {
32+
return results;
33+
}
1934
}

discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryAggregationQueryTopHitsAggregation.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,23 @@
1212
*/
1313
package com.ibm.watson.discovery.v2.model;
1414

15+
import java.util.List;
16+
1517
/** Returns the top documents ranked by the score of the query. */
1618
public class QueryAggregationQueryTopHitsAggregation extends QueryAggregation {
1719

20+
protected List<QueryTopHitsAggregationResult> results;
21+
1822
protected QueryAggregationQueryTopHitsAggregation() {}
23+
24+
/**
25+
* Gets the results.
26+
*
27+
* <p>An array of results.
28+
*
29+
* @return the results
30+
*/
31+
public List<QueryTopHitsAggregationResult> getResults() {
32+
return results;
33+
}
1934
}

discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryAggregationQueryTopicAggregation.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
*/
1313
package com.ibm.watson.discovery.v2.model;
1414

15+
import java.util.List;
16+
1517
/**
1618
* Detects how much the frequency of a given facet value deviates from the expected average for the
1719
* given time period. This aggregation type does not use data from previous time periods. It
@@ -20,5 +22,18 @@
2022
*/
2123
public class QueryAggregationQueryTopicAggregation extends QueryAggregation {
2224

25+
protected List<QueryTopicAggregationResult> results;
26+
2327
protected QueryAggregationQueryTopicAggregation() {}
28+
29+
/**
30+
* Gets the results.
31+
*
32+
* <p>An array of results.
33+
*
34+
* @return the results
35+
*/
36+
public List<QueryTopicAggregationResult> getResults() {
37+
return results;
38+
}
2439
}

discovery/src/main/java/com/ibm/watson/discovery/v2/model/QueryAggregationQueryTrendAggregation.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,26 @@
1212
*/
1313
package com.ibm.watson.discovery.v2.model;
1414

15+
import java.util.List;
16+
1517
/**
1618
* Detects sharp and unexpected changes in the frequency of a facet or facet value over time based
1719
* on the past history of frequency changes of the facet value.
1820
*/
1921
public class QueryAggregationQueryTrendAggregation extends QueryAggregation {
2022

23+
protected List<QueryTrendAggregationResult> results;
24+
2125
protected QueryAggregationQueryTrendAggregation() {}
26+
27+
/**
28+
* Gets the results.
29+
*
30+
* <p>An array of results.
31+
*
32+
* @return the results
33+
*/
34+
public List<QueryTrendAggregationResult> getResults() {
35+
return results;
36+
}
2237
}

0 commit comments

Comments
 (0)