Class AsyncSearchResponseBase
java.lang.Object
co.elastic.clients.elasticsearch.async_search.AsyncSearchResponseBase
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
AsyncSearchDocumentResponseBase,StatusResponseBase
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAsyncSearchResponseBase.AbstractBuilder<BuilderT extends AsyncSearchResponseBase.AbstractBuilder<BuilderT>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionfinal DateTimeIndicates when the async search completed.final LongAPI name:completion_time_in_millisfinal DateTimeIndicates when the async search will expire.final longRequired - API name:expiration_time_in_millisfinal Stringid()API name:idfinal booleanRequired - When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards.final booleanRequired - Indicates whether the search is still running or has completed.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <BuilderT extends AsyncSearchResponseBase.AbstractBuilder<BuilderT>>
voidsetupAsyncSearchResponseBaseDeserializer(ObjectDeserializer<BuilderT> op) final DateTimeAPI name:start_timefinal longRequired - API name:start_time_in_millistoString()
-
Constructor Details
-
AsyncSearchResponseBase
-
-
Method Details
-
id
API name:id -
isPartial
public final boolean isPartial()Required - When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards. While the query is running,is_partialis always set totrue.API name:
is_partial -
isRunning
public final boolean isRunning()Required - Indicates whether the search is still running or has completed. NOTE: If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even thoughis_runningisfalse.API name:
is_running -
expirationTime
Indicates when the async search will expire.API name:
expiration_time -
expirationTimeInMillis
public final long expirationTimeInMillis()Required - API name:expiration_time_in_millis -
startTime
API name:start_time -
startTimeInMillis
public final long startTimeInMillis()Required - API name:start_time_in_millis -
completionTime
Indicates when the async search completed. Only present when the search has completed.API name:
completion_time -
completionTimeInMillis
API name:completion_time_in_millis -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAsyncSearchResponseBaseDeserializer
protected static <BuilderT extends AsyncSearchResponseBase.AbstractBuilder<BuilderT>> void setupAsyncSearchResponseBaseDeserializer(ObjectDeserializer<BuilderT> op)
-