Class ScrollRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.ScrollRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ScrollRequest extends RequestBase implements JsonpSerializable
Allows to retrieve a large numbers of results from a single search request.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScrollRequest.BuilderBuilder forScrollRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ScrollRequest>_DESERIALIZERJson deserializer forScrollRequeststatic SimpleEndpoint<ScrollRequest,?>_ENDPOINTEndpoint "scroll". -
Method Summary
Modifier and Type Method Description static <TDocument>
Endpoint<ScrollRequest,ScrollResponse<TDocument>,ErrorResponse>createScrollEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)Create an "scroll" endpoint.static ScrollRequestof(java.util.function.Function<ScrollRequest.Builder,ObjectBuilder<ScrollRequest>> fn)Timescroll()Period to retain the search context for scrolling.java.lang.StringscrollId()Required - Scroll ID of the search.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupScrollRequestDeserializer(ObjectDeserializer<ScrollRequest.Builder> op)Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forScrollRequest -
_ENDPOINT
Endpoint "scroll".
-
-
Method Details
-
of
public static ScrollRequest of(java.util.function.Function<ScrollRequest.Builder,ObjectBuilder<ScrollRequest>> fn) -
scroll
Period to retain the search context for scrolling.API name:
scroll -
scrollId
public final java.lang.String scrollId()Required - Scroll ID of the search.API name:
scroll_id -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupScrollRequestDeserializer
-
createScrollEndpoint
public static <TDocument> Endpoint<ScrollRequest,ScrollResponse<TDocument>,ErrorResponse> createScrollEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)Create an "scroll" endpoint.
-