Interface QDrantBinaryResponse

All Superinterfaces:
AutoCloseable, RestResponse
All Known Implementing Classes:
QDrantBinaryResponseImpl

public interface QDrantBinaryResponse extends RestResponse, AutoCloseable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the response body handler.
    int
    Return the HTTP status code for the response.
    Retrieve the content type of the binary
    Retrieve the filename of this binary
    default io.reactivex.rxjava3.core.Flowable<byte[]>
    Retrieve a Flowable which emits byte chunks.
    Retrieve a blocking input stream of the response body.
    boolean
    Check whether the request was successful.
  • Field Details

  • Method Details

    • getStream

      InputStream getStream()
      Retrieve a blocking input stream of the response body. This object must be closed via #close after the stream has been read.
      Returns:
    • getFlowable

      default io.reactivex.rxjava3.core.Flowable<byte[]> getFlowable()
      Retrieve a Flowable which emits byte chunks. The response is closed when all bytes have been read. It is advised to not use close or the auto closable manually when working with this Flowable, since the bytes could be emitted asynchronously.
      Returns:
    • getFilename

      String getFilename()
      Retrieve the filename of this binary
      Returns:
    • getContentType

      String getContentType()
      Retrieve the content type of the binary
      Returns:
    • close

      void close()
      Closes the response body handler.
      Specified by:
      close in interface AutoCloseable
    • isSuccessful

      boolean isSuccessful()
      Check whether the request was successful.
      Returns:
    • code

      int code()
      Return the HTTP status code for the response.
      Returns: