Class ClosePointInTimeRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.ClosePointInTimeRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class ClosePointInTimeRequest
extends RequestBase
implements JsonpSerializable
Close a point in time.
A point in time must be opened explicitly before being used in search
requests. The keep_alive parameter tells Elasticsearch how long
it should persist. A point in time is automatically closed when the
keep_alive period has elapsed. However, keeping points in time
has a cost; close them as soon as they are no longer required for search
requests.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ClosePointInTimeRequest>Json deserializer forClosePointInTimeRequeststatic final Endpoint<ClosePointInTimeRequest,ClosePointInTimeResponse, ErrorResponse> Endpoint "close_point_in_time". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringid()Required - The ID of the point-in-time.static ClosePointInTimeRequestvoidserialize(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 co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forClosePointInTimeRequest -
_ENDPOINT
public static final Endpoint<ClosePointInTimeRequest,ClosePointInTimeResponse, _ENDPOINTErrorResponse> Endpoint "close_point_in_time".
-
-
Method Details
-
of
public static ClosePointInTimeRequest of(Function<ClosePointInTimeRequest.Builder, ObjectBuilder<ClosePointInTimeRequest>> fn) -
id
Required - The ID of the point-in-time.API name:
id -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupClosePointInTimeRequestDeserializer
protected static void setupClosePointInTimeRequestDeserializer(ObjectDeserializer<ClosePointInTimeRequest.Builder> op)
-