Module org.elasticsearch.xcore
Class EsqlQueryResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.xpack.core.esql.action.EsqlQueryResponse
- All Implemented Interfaces:
Closeable,AutoCloseable,Writeable,org.elasticsearch.core.RefCounted,org.elasticsearch.core.Releasable
public abstract class EsqlQueryResponse
extends ActionResponse
implements org.elasticsearch.core.Releasable
Response to an ES|QL query request.
This query response must be closed when the consumer of its response
object is finished. Closing the query response closes and invalidates
the response object. Calling
response() on a closed query
response results in an IllegalStateException.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()response()Returns the response object.protected abstract EsqlResponseMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
EsqlQueryResponse
public EsqlQueryResponse()
-
-
Method Details
-
response
Returns the response object. -
responseInternal
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-