Class QDrantClientRequestImpl<T extends RestResponse>
java.lang.Object
io.metaloom.qdrant.client.http.impl.QDrantClientRequestImpl<T>
- All Implemented Interfaces:
QDrantClientRequest<T>
public class QDrantClientRequestImpl<T extends RestResponse>
extends Object
implements QDrantClientRequest<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.Loggerstatic final okhttp3.MediaType -
Constructor Summary
ConstructorsConstructorDescriptionQDrantClientRequestImpl(String method, String path, QDrantHttpClient qdrantClient, okhttp3.OkHttpClient client, RestRequestModel requestModel, Class<T> responseClass) -
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.executeSync(okhttp3.Request request) 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
-
log
public static final org.slf4j.Logger log -
MEDIA_TYPE_JSON
public static final okhttp3.MediaType MEDIA_TYPE_JSON
-
-
Constructor Details
-
QDrantClientRequestImpl
public QDrantClientRequestImpl(String method, String path, QDrantHttpClient qdrantClient, okhttp3.OkHttpClient client, RestRequestModel requestModel, Class<T> responseClass)
-
-
Method Details
-
json
Description copied from interface:QDrantClientRequestExecutes the request in a synchronized blocking way and returns the returned JSON data.- Specified by:
jsonin interfaceQDrantClientRequest<T extends RestResponse>- Returns:
- Throws:
HttpErrorException
-
async
Description copied from interface:QDrantClientRequestReturns a single which can be used to execute the request and listen to the result.- Specified by:
asyncin interfaceQDrantClientRequest<T extends RestResponse>- Returns:
-
addQueryParameter
Description copied from interface:QDrantClientRequestAdd an additional query parameter.- Specified by:
addQueryParameterin interfaceQDrantClientRequest<T extends RestResponse>- Returns:
- Fluent API
-
addWait
Description copied from interface:QDrantClientRequestAdd the wait query parameter.- Specified by:
addWaitin interfaceQDrantClientRequest<T extends RestResponse>- Returns:
-
addAnonymize
Description copied from interface:QDrantClientRequestAdd the anonymize query parameter to the request.- Specified by:
addAnonymizein interfaceQDrantClientRequest<T extends RestResponse>- Returns:
-
addTimeout
Description copied from interface:QDrantClientRequestAdd the timeout query parameter to the request.- Specified by:
addTimeoutin interfaceQDrantClientRequest<T extends RestResponse>- Returns:
-
addForce
Description copied from interface:QDrantClientRequestAdd the force query parameter to the request.- Specified by:
addForcein interfaceQDrantClientRequest<T extends RestResponse>- Returns:
-
sync
Description copied from interface:QDrantClientRequestExecutes the request in a synchronized blocking way.- Specified by:
syncin interfaceQDrantClientRequest<T extends RestResponse>- Returns:
- Throws:
HttpErrorException
-
executeSync
- Throws:
HttpErrorException
-