Class GetAsyncStatusResponse
java.lang.Object
co.elastic.clients.elasticsearch.sql.GetAsyncStatusResponse
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class GetAsyncStatusResponse
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<GetAsyncStatusResponse>
Json deserializer forGetAsyncStatusResponse
-
Method Summary
Modifier and TypeMethodDescriptionfinal Number
HTTP status code for the search.final long
Required - Timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete the search and its results, even if the search is still running.final String
id()
Required - Identifier for the search.final boolean
Required - Iftrue
, the response does not contain complete search results.final boolean
Required - Iftrue
, the search is still running.static GetAsyncStatusResponse
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final long
Required - Timestamp, in milliseconds since the Unix epoch, when the search started.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forGetAsyncStatusResponse
-
-
Method Details
-
of
public static GetAsyncStatusResponse of(Function<GetAsyncStatusResponse.Builder, ObjectBuilder<GetAsyncStatusResponse>> fn) -
id
Required - Identifier for the search.API name:
id
-
isRunning
public final boolean isRunning()Required - Iftrue
, the search is still running. Iffalse
, the search has finished.API name:
is_running
-
isPartial
public final boolean isPartial()Required - Iftrue
, the response does not contain complete search results. Ifis_partial
istrue
andis_running
istrue
, the search is still running. Ifis_partial
istrue
butis_running
isfalse
, the results are partial due to a failure or timeout.API name:
is_partial
-
startTimeInMillis
public final long startTimeInMillis()Required - Timestamp, in milliseconds since the Unix epoch, when the search started. The API only returns this property for running searches.API name:
start_time_in_millis
-
expirationTimeInMillis
public final long expirationTimeInMillis()Required - Timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete the search and its results, even if the search is still running.API name:
expiration_time_in_millis
-
completionStatus
HTTP status code for the search. The API only returns this property for completed searches.API name:
completion_status
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupGetAsyncStatusResponseDeserializer
protected static void setupGetAsyncStatusResponseDeserializer(ObjectDeserializer<GetAsyncStatusResponse.Builder> op)
-