Class GetAsyncStatusResponse

java.lang.Object
co.elastic.clients.elasticsearch.sql.GetAsyncStatusResponse
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class GetAsyncStatusResponse
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static GetAsyncStatusResponse of​(java.util.function.Function<GetAsyncStatusResponse.Builder,​ObjectBuilder<GetAsyncStatusResponse>> fn)
    • id

      public final java.lang.String id()
      Required - Identifier for the search.

      API name: id

    • isRunning

      public final boolean isRunning()
      Required - If true, the search is still running. If false, the search has finished.

      API name: is_running

    • isPartial

      public final boolean isPartial()
      Required - If true, the response does not contain complete search results. If is_partial is true and is_running is true, the search is still running. If is_partial is true but is_running is false, the results are partial due to a failure or timeout.

      API name: is_partial

    • startTimeInMillis

      public final java.lang.Number 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 java.lang.Number 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

      @Nullable public final java.lang.Number completionStatus()
      HTTP status code for the search. The API only returns this property for completed searches.

      API name: completion_status

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setupGetAsyncStatusResponseDeserializer

      protected static void setupGetAsyncStatusResponseDeserializer​(ObjectDeserializer<GetAsyncStatusResponse.Builder> op)