Class FrameFilePartialFetch

java.lang.Object
org.apache.druid.frame.file.FrameFilePartialFetch

public class FrameFilePartialFetch extends Object
Response object for FrameFileHttpResponseHandler. The handler mutates this object on each chunk of a chunked response. When the response is done, this object is returned to the caller.
  • Method Details

    • isLastFetch

      public boolean isLastFetch()
    • getExceptionCaught

      public Throwable getExceptionCaught()
      The exception that was encountered, if isExceptionCaught() is true.
      Throws:
      IllegalStateException - if no exception was caught
    • isExceptionCaught

      public boolean isExceptionCaught()
      Whether an exception was encountered during response processing.
    • getBytesRead

      public long getBytesRead()
      Number of bytes read so far by this request.
    • backpressureFuture

      public com.google.common.util.concurrent.ListenableFuture<?> backpressureFuture()
      Future that resolves when it is a good time to request the next chunk of the frame file. Must only be called once, because the future is cleared once it is returned.