Class QueryResultPusher.StreamingHttpResponseAccumulator

java.lang.Object
org.apache.druid.server.QueryResultPusher.StreamingHttpResponseAccumulator
All Implemented Interfaces:
Closeable, AutoCloseable, Accumulator<javax.ws.rs.core.Response,Object>
Enclosing class:
QueryResultPusher

public class QueryResultPusher.StreamingHttpResponseAccumulator extends Object implements Accumulator<javax.ws.rs.core.Response,Object>, Closeable
  • Constructor Details

  • Method Details

    • getNumBytesSent

      public long getNumBytesSent()
    • isInitialized

      public boolean isInitialized()
    • initialize

      public void initialize()
      Initializes the response. This is done lazily so that we can put various metadata that we only get once we have some of the response stream into the result.

      It is okay for this to be called multiple times.

    • accumulate

      @Nullable public javax.ws.rs.core.Response accumulate(javax.ws.rs.core.Response retVal, Object in)
      Specified by:
      accumulate in interface Accumulator<javax.ws.rs.core.Response,Object>
    • flush

      public void flush() throws IOException
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException