Package io.metaloom.qdrant.client.http
Interface QDrantClientRequest<T extends RestResponse>
- All Known Implementing Classes:
QDrantClientRequestImpl
public interface QDrantClientRequest<T extends RestResponse>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddAnonymize(boolean anonymize) Add the anonymize query parameter to the request.addForce(boolean force) Add the force query parameter to the request.addQueryParameter(String key, String value) Add an additional query parameter.addTimeout(int timeout) Add the timeout query parameter to the request.addWait(boolean wait) Add the wait query parameter.io.reactivex.rxjava3.core.Single<T>async()Returns a single which can be used to execute the request and listen to the result.static <T extends RestResponse>
QDrantClientRequest<T>create(String method, String path, QDrantHttpClient qdrantClient, okhttp3.OkHttpClient okClient, RestRequestModel request, Class<T> responseClass) Create request with payload.static <T extends RestResponse>
QDrantClientRequest<T>create(String method, String path, QDrantHttpClient qdrantClient, okhttp3.OkHttpClient okClient, Class<T> responseClass) Create request without payload.com.fasterxml.jackson.databind.JsonNodejson()Executes the request in a synchronized blocking way and returns the returned JSON data.sync()Executes the request in a synchronized blocking way.
-
Field Details
-
PUT
- See Also:
-
PATCH
- See Also:
-
GET
- See Also:
-
DELETE
- See Also:
-
POST
- See Also:
-
-
Method Details
-
create
static <T extends RestResponse> QDrantClientRequest<T> create(String method, String path, QDrantHttpClient qdrantClient, okhttp3.OkHttpClient okClient, Class<T> responseClass) Create request without payload.- Type Parameters:
T-- Parameters:
method-path-qdrantClient-okClient-responseClass-- Returns:
-
create
static <T extends RestResponse> QDrantClientRequest<T> create(String method, String path, QDrantHttpClient qdrantClient, okhttp3.OkHttpClient okClient, RestRequestModel request, Class<T> responseClass) Create request with payload.- Type Parameters:
T-- Parameters:
method-path-qdrantClient-okClient-request-responseClass-- Returns:
-
addQueryParameter
Add an additional query parameter.- Parameters:
key-value-- Returns:
- Fluent API
-
addWait
Add the wait query parameter.- Parameters:
wait-- Returns:
-
addTimeout
Add the timeout query parameter to the request.- Parameters:
timeout-- Returns:
-
addAnonymize
Add the anonymize query parameter to the request.- Parameters:
anonymize-- Returns:
-
addForce
Add the force query parameter to the request.- Parameters:
force-- Returns:
-
async
io.reactivex.rxjava3.core.Single<T> async()Returns a single which can be used to execute the request and listen to the result.- Returns:
-
json
Executes the request in a synchronized blocking way and returns the returned JSON data.- Returns:
- Throws:
HttpErrorException
-
sync
Executes the request in a synchronized blocking way.- Returns:
- Throws:
HttpErrorException
-