Skip to content

Commit 4f8e872

Browse files
committed
[codegen] update to latest spec
1 parent ebc3326 commit 4f8e872

File tree

165 files changed

+2952
-11569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+2952
-11569
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java

Lines changed: 108 additions & 108 deletions
Large diffs are not rendered by default.

java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java

Lines changed: 108 additions & 108 deletions
Large diffs are not rendered by default.

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndexingStats.java

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,6 @@ public class IndexingStats implements JsonpSerializable {
9797
@Nullable
9898
private final Double writeLoad;
9999

100-
@Nullable
101-
private final Double recentWriteLoad;
102-
103-
@Nullable
104-
private final Double peakWriteLoad;
105-
106100
// ---------------------------------------------------------------------------------------------
107101

108102
private IndexingStats(Builder builder) {
@@ -124,8 +118,6 @@ private IndexingStats(Builder builder) {
124118
this.indexFailed = ApiTypeHelper.requireNonNull(builder.indexFailed, this, "indexFailed", 0);
125119
this.types = ApiTypeHelper.unmodifiable(builder.types);
126120
this.writeLoad = builder.writeLoad;
127-
this.recentWriteLoad = builder.recentWriteLoad;
128-
this.peakWriteLoad = builder.peakWriteLoad;
129121

130122
}
131123

@@ -242,22 +234,6 @@ public final Double writeLoad() {
242234
return this.writeLoad;
243235
}
244236

245-
/**
246-
* API name: {@code recent_write_load}
247-
*/
248-
@Nullable
249-
public final Double recentWriteLoad() {
250-
return this.recentWriteLoad;
251-
}
252-
253-
/**
254-
* API name: {@code peak_write_load}
255-
*/
256-
@Nullable
257-
public final Double peakWriteLoad() {
258-
return this.peakWriteLoad;
259-
}
260-
261237
/**
262238
* Serialize this object to JSON.
263239
*/
@@ -330,16 +306,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
330306
generator.write(this.writeLoad);
331307

332308
}
333-
if (this.recentWriteLoad != null) {
334-
generator.writeKey("recent_write_load");
335-
generator.write(this.recentWriteLoad);
336-
337-
}
338-
if (this.peakWriteLoad != null) {
339-
generator.writeKey("peak_write_load");
340-
generator.write(this.peakWriteLoad);
341-
342-
}
343309

344310
}
345311

@@ -390,12 +356,6 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
390356
@Nullable
391357
private Double writeLoad;
392358

393-
@Nullable
394-
private Double recentWriteLoad;
395-
396-
@Nullable
397-
private Double peakWriteLoad;
398-
399359
/**
400360
* Required - API name: {@code index_current}
401361
*/
@@ -558,22 +518,6 @@ public final Builder writeLoad(@Nullable Double value) {
558518
return this;
559519
}
560520

561-
/**
562-
* API name: {@code recent_write_load}
563-
*/
564-
public final Builder recentWriteLoad(@Nullable Double value) {
565-
this.recentWriteLoad = value;
566-
return this;
567-
}
568-
569-
/**
570-
* API name: {@code peak_write_load}
571-
*/
572-
public final Builder peakWriteLoad(@Nullable Double value) {
573-
this.peakWriteLoad = value;
574-
return this;
575-
}
576-
577521
@Override
578522
protected Builder self() {
579523
return this;
@@ -617,8 +561,6 @@ protected static void setupIndexingStatsDeserializer(ObjectDeserializer<Indexing
617561
op.add(Builder::indexFailed, JsonpDeserializer.longDeserializer(), "index_failed");
618562
op.add(Builder::types, JsonpDeserializer.stringMapDeserializer(IndexingStats._DESERIALIZER), "types");
619563
op.add(Builder::writeLoad, JsonpDeserializer.doubleDeserializer(), "write_load");
620-
op.add(Builder::recentWriteLoad, JsonpDeserializer.doubleDeserializer(), "recent_write_load");
621-
op.add(Builder::peakWriteLoad, JsonpDeserializer.doubleDeserializer(), "peak_write_load");
622564

623565
}
624566

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public final Float similarity() {
180180
}
181181

182182
/**
183-
* Apply oversampling and rescoring to quantized vectors
183+
* Apply oversampling and rescoring to quantized vectors *
184184
* <p>
185185
* API name: {@code rescore_vector}
186186
*/
@@ -421,7 +421,7 @@ public final Builder similarity(@Nullable Float value) {
421421
}
422422

423423
/**
424-
* Apply oversampling and rescoring to quantized vectors
424+
* Apply oversampling and rescoring to quantized vectors *
425425
* <p>
426426
* API name: {@code rescore_vector}
427427
*/
@@ -431,7 +431,7 @@ public final Builder rescoreVector(@Nullable RescoreVector value) {
431431
}
432432

433433
/**
434-
* Apply oversampling and rescoring to quantized vectors
434+
* Apply oversampling and rescoring to quantized vectors *
435435
* <p>
436436
* API name: {@code rescore_vector}
437437
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnRetriever.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public final Float similarity() {
162162
}
163163

164164
/**
165-
* Apply oversampling and rescoring to quantized vectors
165+
* Apply oversampling and rescoring to quantized vectors *
166166
* <p>
167167
* API name: {@code rescore_vector}
168168
*/
@@ -335,7 +335,7 @@ public final Builder similarity(@Nullable Float value) {
335335
}
336336

337337
/**
338-
* Apply oversampling and rescoring to quantized vectors
338+
* Apply oversampling and rescoring to quantized vectors *
339339
* <p>
340340
* API name: {@code rescore_vector}
341341
*/
@@ -345,7 +345,7 @@ public final Builder rescoreVector(@Nullable RescoreVector value) {
345345
}
346346

347347
/**
348-
* Apply oversampling and rescoring to quantized vectors
348+
* Apply oversampling and rescoring to quantized vectors *
349349
* <p>
350350
* API name: {@code rescore_vector}
351351
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnSearch.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public final InnerHits innerHits() {
202202
}
203203

204204
/**
205-
* Apply oversampling and rescoring to quantized vectors
205+
* Apply oversampling and rescoring to quantized vectors *
206206
* <p>
207207
* API name: {@code rescore_vector}
208208
*/
@@ -501,7 +501,7 @@ public final Builder innerHits(Function<InnerHits.Builder, ObjectBuilder<InnerHi
501501
}
502502

503503
/**
504-
* Apply oversampling and rescoring to quantized vectors
504+
* Apply oversampling and rescoring to quantized vectors *
505505
* <p>
506506
* API name: {@code rescore_vector}
507507
*/
@@ -511,7 +511,7 @@ public final Builder rescoreVector(@Nullable RescoreVector value) {
511511
}
512512

513513
/**
514-
* Apply oversampling and rescoring to quantized vectors
514+
* Apply oversampling and rescoring to quantized vectors *
515515
* <p>
516516
* API name: {@code rescore_vector}
517517
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreNormalizer.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ public enum ScoreNormalizer implements JsonEnum {
4949

5050
Minmax("minmax"),
5151

52-
L2Norm("l2_norm"),
53-
5452
;
5553

5654
private final String jsonValue;

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,12 @@ public class BoxplotAggregation extends MetricAggregationBase implements Aggrega
5959
@Nullable
6060
private final Double compression;
6161

62-
@Nullable
63-
private final TDigestExecutionHint executionHint;
64-
6562
// ---------------------------------------------------------------------------------------------
6663

6764
private BoxplotAggregation(Builder builder) {
6865
super(builder);
6966

7067
this.compression = builder.compression;
71-
this.executionHint = builder.executionHint;
7268

7369
}
7470

@@ -96,20 +92,6 @@ public final Double compression() {
9692
return this.compression;
9793
}
9894

99-
/**
100-
* The default implementation of TDigest is optimized for performance, scaling
101-
* to millions or even billions of sample values while maintaining acceptable
102-
* accuracy levels (close to 1% relative error for millions of samples in some
103-
* cases). To use an implementation optimized for accuracy, set this parameter
104-
* to high_accuracy instead.
105-
* <p>
106-
* API name: {@code execution_hint}
107-
*/
108-
@Nullable
109-
public final TDigestExecutionHint executionHint() {
110-
return this.executionHint;
111-
}
112-
11395
protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
11496

11597
super.serializeInternal(generator, mapper);
@@ -118,10 +100,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
118100
generator.write(this.compression);
119101

120102
}
121-
if (this.executionHint != null) {
122-
generator.writeKey("execution_hint");
123-
this.executionHint.serialize(generator, mapper);
124-
}
125103

126104
}
127105

@@ -137,9 +115,6 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder<Builde
137115
@Nullable
138116
private Double compression;
139117

140-
@Nullable
141-
private TDigestExecutionHint executionHint;
142-
143118
/**
144119
* Limits the maximum number of nodes used by the underlying TDigest algorithm
145120
* to <code>20 * compression</code>, enabling control of memory usage and
@@ -152,20 +127,6 @@ public final Builder compression(@Nullable Double value) {
152127
return this;
153128
}
154129

155-
/**
156-
* The default implementation of TDigest is optimized for performance, scaling
157-
* to millions or even billions of sample values while maintaining acceptable
158-
* accuracy levels (close to 1% relative error for millions of samples in some
159-
* cases). To use an implementation optimized for accuracy, set this parameter
160-
* to high_accuracy instead.
161-
* <p>
162-
* API name: {@code execution_hint}
163-
*/
164-
public final Builder executionHint(@Nullable TDigestExecutionHint value) {
165-
this.executionHint = value;
166-
return this;
167-
}
168-
169130
@Override
170131
protected Builder self() {
171132
return this;
@@ -195,7 +156,6 @@ public BoxplotAggregation build() {
195156
protected static void setupBoxplotAggregationDeserializer(ObjectDeserializer<BoxplotAggregation.Builder> op) {
196157
MetricAggregationBase.setupMetricAggregationBaseDeserializer(op);
197158
op.add(Builder::compression, JsonpDeserializer.doubleDeserializer(), "compression");
198-
op.add(Builder::executionHint, TDigestExecutionHint._DESERIALIZER, "execution_hint");
199159

200160
}
201161

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregation.java

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,12 @@ public class MedianAbsoluteDeviationAggregation extends FormatMetricAggregationB
5959
@Nullable
6060
private final Double compression;
6161

62-
@Nullable
63-
private final TDigestExecutionHint executionHint;
64-
6562
// ---------------------------------------------------------------------------------------------
6663

6764
private MedianAbsoluteDeviationAggregation(Builder builder) {
6865
super(builder);
6966

7067
this.compression = builder.compression;
71-
this.executionHint = builder.executionHint;
7268

7369
}
7470

@@ -97,20 +93,6 @@ public final Double compression() {
9793
return this.compression;
9894
}
9995

100-
/**
101-
* The default implementation of TDigest is optimized for performance, scaling
102-
* to millions or even billions of sample values while maintaining acceptable
103-
* accuracy levels (close to 1% relative error for millions of samples in some
104-
* cases). To use an implementation optimized for accuracy, set this parameter
105-
* to high_accuracy instead.
106-
* <p>
107-
* API name: {@code execution_hint}
108-
*/
109-
@Nullable
110-
public final TDigestExecutionHint executionHint() {
111-
return this.executionHint;
112-
}
113-
11496
protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
11597

11698
super.serializeInternal(generator, mapper);
@@ -119,10 +101,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
119101
generator.write(this.compression);
120102

121103
}
122-
if (this.executionHint != null) {
123-
generator.writeKey("execution_hint");
124-
this.executionHint.serialize(generator, mapper);
125-
}
126104

127105
}
128106

@@ -138,9 +116,6 @@ public static class Builder extends FormatMetricAggregationBase.AbstractBuilder<
138116
@Nullable
139117
private Double compression;
140118

141-
@Nullable
142-
private TDigestExecutionHint executionHint;
143-
144119
/**
145120
* Limits the maximum number of nodes used by the underlying TDigest algorithm
146121
* to <code>20 * compression</code>, enabling control of memory usage and
@@ -153,20 +128,6 @@ public final Builder compression(@Nullable Double value) {
153128
return this;
154129
}
155130

156-
/**
157-
* The default implementation of TDigest is optimized for performance, scaling
158-
* to millions or even billions of sample values while maintaining acceptable
159-
* accuracy levels (close to 1% relative error for millions of samples in some
160-
* cases). To use an implementation optimized for accuracy, set this parameter
161-
* to high_accuracy instead.
162-
* <p>
163-
* API name: {@code execution_hint}
164-
*/
165-
public final Builder executionHint(@Nullable TDigestExecutionHint value) {
166-
this.executionHint = value;
167-
return this;
168-
}
169-
170131
@Override
171132
protected Builder self() {
172133
return this;
@@ -198,7 +159,6 @@ protected static void setupMedianAbsoluteDeviationAggregationDeserializer(
198159
ObjectDeserializer<MedianAbsoluteDeviationAggregation.Builder> op) {
199160
FormatMetricAggregationBase.setupFormatMetricAggregationBaseDeserializer(op);
200161
op.add(Builder::compression, JsonpDeserializer.doubleDeserializer(), "compression");
201-
op.add(Builder::executionHint, TDigestExecutionHint._DESERIALIZER, "execution_hint");
202162

203163
}
204164

0 commit comments

Comments
 (0)