Skip to content

Commit 38430c8

Browse files
chore(discov2): apply more hand edits
1 parent c661bf4 commit 38430c8

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-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 Long interval;
6059
protected String path;
6160

6261
@SerializedName("matching_results")
@@ -129,17 +128,6 @@ public String getName() {
129128
return name;
130129
}
131130

132-
/**
133-
* Gets the interval.
134-
*
135-
* <p>The size of the sections that the results are split into.
136-
*
137-
* @return the interval
138-
*/
139-
public Long getInterval() {
140-
return interval;
141-
}
142-
143131
/**
144132
* Gets the path.
145133
*

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,23 @@
2020
*/
2121
public class QueryAggregationQueryHistogramAggregation extends QueryAggregation {
2222

23+
protected Long interval;
24+
2325
protected List<QueryHistogramAggregationResult> results;
2426

2527
protected QueryAggregationQueryHistogramAggregation() {}
2628

29+
/**
30+
* Gets the interval.
31+
*
32+
* <p>The size of the sections that the results are split into.
33+
*
34+
* @return the interval
35+
*/
36+
public Long getInterval() {
37+
return interval;
38+
}
39+
2740
/**
2841
* Gets the results.
2942
*

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,24 @@
1717
/** A specialized histogram aggregation that uses dates to create interval segments. */
1818
public class QueryAggregationQueryTimesliceAggregation extends QueryAggregation {
1919

20+
protected String interval;
21+
2022
protected List<QueryTimesliceAggregationResult> results;
2123

2224
protected QueryAggregationQueryTimesliceAggregation() {}
2325

26+
27+
/**
28+
* Gets the interval.
29+
*
30+
* <p>The date interval value.
31+
*
32+
* @return the interval
33+
*/
34+
public String getInterval() {
35+
return interval;
36+
}
37+
2438
/**
2539
* Gets the results.
2640
*

0 commit comments

Comments
 (0)