Class ScrollRequest
- java.lang.Object
-
- org.opensearch.client.opensearch._types.RequestBase
-
- org.opensearch.client.opensearch.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScrollRequest.BuilderBuilder forScrollRequest.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._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
All Methods Static Methods Instance Methods Concrete Methods 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)
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ScrollRequest> _DESERIALIZER
Json deserializer forScrollRequest
-
_ENDPOINT
public static final SimpleEndpoint<ScrollRequest,?> _ENDPOINT
Endpoint "scroll".
-
-
Method Detail
-
of
public static ScrollRequest of(java.util.function.Function<ScrollRequest.Builder,ObjectBuilder<ScrollRequest>> fn)
-
scroll
@Nullable public final Time 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
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupScrollRequestDeserializer
protected static void setupScrollRequestDeserializer(ObjectDeserializer<ScrollRequest.Builder> op)
-
createScrollEndpoint
public static <TDocument> Endpoint<ScrollRequest,ScrollResponse<TDocument>,ErrorResponse> createScrollEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)
Create an "scroll" endpoint.
-
-