Class ScrollRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.core.ScrollRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable
@JsonpDeserializable
public class ScrollRequest
extends RequestBase
implements PlainJsonSerializable
Allows to retrieve a large numbers of results from a single search request.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ScrollRequest> Json deserializer forScrollRequeststatic final SimpleEndpoint<ScrollRequest, ?> Endpoint "scroll". -
Method Summary
Modifier and TypeMethodDescriptionstatic <TDocument>
Endpoint<ScrollRequest, ScrollResponse<TDocument>, ErrorResponse> createScrollEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "scroll" endpoint.static ScrollRequestfinal Timescroll()Period to retain the search context for scrolling.final 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 voidMethods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
Json deserializer forScrollRequest -
_ENDPOINT
Endpoint "scroll".
-
-
Method Details
-
of
-
scroll
Period to retain the search context for scrolling.API name:
scroll -
scrollId
Required - Scroll ID of the search.API name:
scroll_id -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
-
setupScrollRequestDeserializer
-
createScrollEndpoint
public static <TDocument> Endpoint<ScrollRequest,ScrollResponse<TDocument>, createScrollEndpointErrorResponse> (JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "scroll" endpoint.
-