Package org.apache.druid.frame.file
Class FrameFilePartialFetch
java.lang.Object
org.apache.druid.frame.file.FrameFilePartialFetch
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 Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<?> Future that resolves when it is a good time to request the next chunk of the frame file.longNumber of bytes read so far by this request.The exception that was encountered, ifisExceptionCaught()is true.booleanWhether an exception was encountered during response processing.boolean
-
Method Details
-
isLastFetch
public boolean isLastFetch() -
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.
-