Package org.apache.druid.frame.file
Class FrameFilePartialFetch
- java.lang.Object
-
- org.apache.druid.frame.file.FrameFilePartialFetch
-
public class FrameFilePartialFetch extends Object
Response object forFrameFileHttpResponseHandler
. 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.long
getBytesRead()
Number of bytes read so far by this request.Throwable
getExceptionCaught()
The exception that was encountered, ifisExceptionCaught()
is true.boolean
isExceptionCaught()
Whether an exception was encountered during response processing.boolean
isLastFetch()
-
-
-
Method Detail
-
isLastFetch
public boolean isLastFetch()
-
getExceptionCaught
public Throwable getExceptionCaught()
The exception that was encountered, ifisExceptionCaught()
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.
-
-