Class 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.
  • Constructor Details

    • EsqlQueryResponse

      public EsqlQueryResponse()
  • Method Details

    • response

      public EsqlResponse response()
      Returns the response object.
    • responseInternal

      protected abstract EsqlResponse responseInternal()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.core.Releasable