Skip to content

Commit a405237

Browse files
committed
Update generated code
1 parent 79dccfe commit a405237

File tree

2,241 files changed

+2970
-4713
lines changed

Some content is hidden

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

2,241 files changed

+2970
-4713
lines changed

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
import co.elastic.clients.elasticsearch.core.RenderSearchTemplateResponse;
9595
import co.elastic.clients.elasticsearch.core.ScriptsPainlessExecuteRequest;
9696
import co.elastic.clients.elasticsearch.core.ScriptsPainlessExecuteResponse;
97+
import co.elastic.clients.elasticsearch.core.ScrollRequest;
98+
import co.elastic.clients.elasticsearch.core.ScrollResponse;
9799
import co.elastic.clients.elasticsearch.core.SearchRequest;
98100
import co.elastic.clients.elasticsearch.core.SearchResponse;
99101
import co.elastic.clients.elasticsearch.core.SearchShardsRequest;
@@ -1490,6 +1492,43 @@ public final <TResult> CompletableFuture<ScriptsPainlessExecuteResponse<TResult>
14901492
return scriptsPainlessExecute(fn.apply(new ScriptsPainlessExecuteRequest.Builder()).build(), tResultClass);
14911493
}
14921494

1495+
// ----- Endpoint: scroll
1496+
1497+
/**
1498+
* Allows to retrieve a large numbers of results from a single search request.
1499+
*
1500+
* @see <a href=
1501+
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll">Documentation
1502+
* on elastic.co</a>
1503+
*/
1504+
1505+
public <TDocument> CompletableFuture<ScrollResponse<TDocument>> scroll(ScrollRequest request,
1506+
Class<TDocument> tDocumentClass) throws IOException, ElasticsearchException {
1507+
@SuppressWarnings("unchecked")
1508+
JsonEndpoint<ScrollRequest, ScrollResponse<TDocument>, ErrorResponse> endpoint = (JsonEndpoint<ScrollRequest, ScrollResponse<TDocument>, ErrorResponse>) ScrollRequest._ENDPOINT;
1509+
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
1510+
"co.elastic.clients:Deserializer:_global.scroll.TDocument", getDeserializer(tDocumentClass));
1511+
1512+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
1513+
}
1514+
1515+
/**
1516+
* Allows to retrieve a large numbers of results from a single search request.
1517+
*
1518+
* @param fn
1519+
* a function that initializes a builder to create the
1520+
* {@link ScrollRequest}
1521+
* @see <a href=
1522+
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll">Documentation
1523+
* on elastic.co</a>
1524+
*/
1525+
1526+
public final <TDocument> CompletableFuture<ScrollResponse<TDocument>> scroll(
1527+
Function<ScrollRequest.Builder, ObjectBuilder<ScrollRequest>> fn, Class<TDocument> tDocumentClass)
1528+
throws IOException, ElasticsearchException {
1529+
return scroll(fn.apply(new ScrollRequest.Builder()).build(), tDocumentClass);
1530+
}
1531+
14931532
// ----- Endpoint: search
14941533

14951534
/**

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
import co.elastic.clients.elasticsearch.core.RenderSearchTemplateResponse;
9595
import co.elastic.clients.elasticsearch.core.ScriptsPainlessExecuteRequest;
9696
import co.elastic.clients.elasticsearch.core.ScriptsPainlessExecuteResponse;
97+
import co.elastic.clients.elasticsearch.core.ScrollRequest;
98+
import co.elastic.clients.elasticsearch.core.ScrollResponse;
9799
import co.elastic.clients.elasticsearch.core.SearchRequest;
98100
import co.elastic.clients.elasticsearch.core.SearchResponse;
99101
import co.elastic.clients.elasticsearch.core.SearchShardsRequest;
@@ -1467,6 +1469,43 @@ public final <TResult> ScriptsPainlessExecuteResponse<TResult> scriptsPainlessEx
14671469
return scriptsPainlessExecute(fn.apply(new ScriptsPainlessExecuteRequest.Builder()).build(), tResultClass);
14681470
}
14691471

1472+
// ----- Endpoint: scroll
1473+
1474+
/**
1475+
* Allows to retrieve a large numbers of results from a single search request.
1476+
*
1477+
* @see <a href=
1478+
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll">Documentation
1479+
* on elastic.co</a>
1480+
*/
1481+
1482+
public <TDocument> ScrollResponse<TDocument> scroll(ScrollRequest request, Class<TDocument> tDocumentClass)
1483+
throws IOException, ElasticsearchException {
1484+
@SuppressWarnings("unchecked")
1485+
JsonEndpoint<ScrollRequest, ScrollResponse<TDocument>, ErrorResponse> endpoint = (JsonEndpoint<ScrollRequest, ScrollResponse<TDocument>, ErrorResponse>) ScrollRequest._ENDPOINT;
1486+
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
1487+
"co.elastic.clients:Deserializer:_global.scroll.TDocument", getDeserializer(tDocumentClass));
1488+
1489+
return this.transport.performRequest(request, endpoint, this.transportOptions);
1490+
}
1491+
1492+
/**
1493+
* Allows to retrieve a large numbers of results from a single search request.
1494+
*
1495+
* @param fn
1496+
* a function that initializes a builder to create the
1497+
* {@link ScrollRequest}
1498+
* @see <a href=
1499+
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll">Documentation
1500+
* on elastic.co</a>
1501+
*/
1502+
1503+
public final <TDocument> ScrollResponse<TDocument> scroll(
1504+
Function<ScrollRequest.Builder, ObjectBuilder<ScrollRequest>> fn, Class<TDocument> tDocumentClass)
1505+
throws IOException, ElasticsearchException {
1506+
return scroll(fn.apply(new ScrollRequest.Builder()).build(), tDocumentClass);
1507+
}
1508+
14701509
// ----- Endpoint: search
14711510

14721511
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/**
4242
*
4343
* @see <a href=
44-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Base.ts#L49-L52">API
44+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Base.ts#L49-L52">API
4545
* specification</a>
4646
*/
4747

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/**
4545
*
4646
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_spec_utils/BaseNode.ts#L25-L32">API
47+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_spec_utils/BaseNode.ts#L25-L32">API
4848
* specification</a>
4949
*/
5050

@@ -181,8 +181,6 @@ protected abstract static class AbstractBuilder<BuilderT extends AbstractBuilder
181181
* Required - API name: {@code attributes}
182182
* <p>
183183
* Adds all entries of <code>map</code> to <code>attributes</code>.
184-
*
185-
* @see ApiTypeHelper#resetMap() Resetting the value to null
186184
*/
187185
public final BuilderT attributes(Map<String, String> map) {
188186
this.attributes = _mapPutAll(this.attributes, map);
@@ -227,8 +225,6 @@ public final BuilderT name(String value) {
227225
* API name: {@code roles}
228226
* <p>
229227
* Adds all elements of <code>list</code> to <code>roles</code>.
230-
*
231-
* @see ApiTypeHelper#resetList() Resetting the value to null
232228
*/
233229
public final BuilderT roles(List<NodeRole> list) {
234230
this.roles = _listAddAll(this.roles, list);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/**
4545
*
4646
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Errors.ts#L58-L64">API
47+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Errors.ts#L58-L64">API
4848
* specification</a>
4949
*/
5050
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/**
4545
*
4646
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Stats.ts#L40-L50">API
47+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L40-L50">API
4848
* specification</a>
4949
*/
5050
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
*
3232
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/common.ts#L145-L163">API
33+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/common.ts#L145-L163">API
3434
* specification</a>
3535
*/
3636
@JsonpDeserializable

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
/**
4444
*
4545
* @see <a href=
46-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Transform.ts#L36-L38">API
46+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Transform.ts#L36-L38">API
4747
* specification</a>
4848
*/
4949
@JsonpDeserializable
@@ -114,8 +114,6 @@ public static class Builder extends ObjectBuilderBase implements ObjectBuilder<C
114114
* Required - API name: {@code transforms}
115115
* <p>
116116
* Adds all elements of <code>list</code> to <code>transforms</code>.
117-
*
118-
* @see ApiTypeHelper#resetList() Resetting the value to null
119117
*/
120118
public final Builder transforms(List<Transform> list) {
121119
this.transforms = _listAddAll(this.transforms, list);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/**
4343
*
4444
* @see <a href=
45-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Stats.ts#L26-L30">API
45+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L26-L30">API
4646
* specification</a>
4747
*/
4848
@JsonpDeserializable

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
/**
4646
*
4747
* @see <a href=
48-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Stats.ts#L52-L56">API
48+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L52-L56">API
4949
* specification</a>
5050
*/
5151
@JsonpDeserializable
@@ -161,8 +161,6 @@ public final Builder size(@Nullable String value) {
161161
* API name: {@code fields}
162162
* <p>
163163
* Adds all entries of <code>map</code> to <code>fields</code>.
164-
*
165-
* @see ApiTypeHelper#resetMap() Resetting the value to null
166164
*/
167165
public final Builder fields(Map<String, FieldSizeUsage> map) {
168166
this.fields = _mapPutAll(this.fields, map);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
*
3232
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/common.ts#L165-L168">API
33+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/common.ts#L165-L168">API
3434
* specification</a>
3535
*/
3636
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/**
4343
*
4444
* @see <a href=
45-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Geo.ts#L135-L140">API
45+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L135-L140">API
4646
* specification</a>
4747
*/
4848
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
*
3232
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Geo.ts#L30-L49">API
33+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L30-L49">API
3434
* specification</a>
3535
*/
3636
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/**
4343
*
4444
* @see <a href=
45-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Stats.ts#L63-L66">API
45+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L63-L66">API
4646
* specification</a>
4747
*/
4848
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/**
4545
*
4646
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Base.ts#L58-L68">API
47+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Base.ts#L58-L68">API
4848
* specification</a>
4949
*/
5050
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* For empty Class assignments
3535
*
3636
* @see <a href=
37-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/common.ts#L136-L137">API
37+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/common.ts#L136-L137">API
3838
* specification</a>
3939
*/
4040
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/**
3434
*
3535
* @see <a href=
36-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Transform.ts#L25-L25">API
36+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Transform.ts#L25-L25">API
3737
* specification</a>
3838
*/
3939
@JsonpDeserializable

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* on the error type.
5151
*
5252
* @see <a href=
53-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Errors.ts#L25-L48">API
53+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Errors.ts#L25-L48">API
5454
* specification</a>
5555
*/
5656
@JsonpDeserializable
@@ -218,8 +218,6 @@ public static class Builder extends ObjectBuilderBase implements ObjectBuilder<E
218218
* Additional details about the error
219219
* <p>
220220
* Adds all entries of <code>map</code> to <code>metadata</code>.
221-
*
222-
* @see ApiTypeHelper#resetMap() Resetting the value to null
223221
*/
224222
public final Builder metadata(Map<String, JsonData> map) {
225223
this.metadata = _mapPutAll(this.metadata, map);
@@ -302,8 +300,6 @@ public final Builder causedBy(Function<ErrorCause.Builder, ObjectBuilder<ErrorCa
302300
* API name: {@code root_cause}
303301
* <p>
304302
* Adds all elements of <code>list</code> to <code>rootCause</code>.
305-
*
306-
* @see ApiTypeHelper#resetList() Resetting the value to null
307303
*/
308304
public final Builder rootCause(List<ErrorCause> list) {
309305
this.rootCause = _listAddAll(this.rootCause, list);
@@ -333,8 +329,6 @@ public final Builder rootCause(Function<ErrorCause.Builder, ObjectBuilder<ErrorC
333329
* API name: {@code suppressed}
334330
* <p>
335331
* Adds all elements of <code>list</code> to <code>suppressed</code>.
336-
*
337-
* @see ApiTypeHelper#resetList() Resetting the value to null
338332
*/
339333
public final Builder suppressed(List<ErrorCause> list) {
340334
this.suppressed = _listAddAll(this.suppressed, list);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* succeed.
4646
*
4747
* @see <a href=
48-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Base.ts#L70-L79">API
48+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Base.ts#L70-L79">API
4949
* specification</a>
5050
*/
5151
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
*
3232
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/common.ts#L177-L191">API
33+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/common.ts#L177-L191">API
3434
* specification</a>
3535
*/
3636
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/**
4545
*
4646
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Stats.ts#L75-L78">API
47+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L75-L78">API
4848
* specification</a>
4949
*/
5050
@JsonpDeserializable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/**
4545
*
4646
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/bd953a3fc/specification/_types/Stats.ts#L58-L61">API
47+
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L58-L61">API
4848
* specification</a>
4949
*/
5050
@JsonpDeserializable

0 commit comments

Comments
 (0)