Class ObjectCreator
java.lang.Object
io.weaviate.client.base.AsyncBaseClient<WeaviateObject>
io.weaviate.client.v1.async.data.api.ObjectCreator
- All Implemented Interfaces:
AsyncClientResult<WeaviateObject>
public class ObjectCreator
extends AsyncBaseClient<WeaviateObject>
implements AsyncClientResult<WeaviateObject>
-
Field Summary
Fields inherited from class io.weaviate.client.base.AsyncBaseClient
client -
Constructor Summary
ConstructorsConstructorDescriptionObjectCreator(org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient client, Config config, AccessTokenProvider tokenProvider, ObjectsPath objectsPath) -
Method Summary
Modifier and TypeMethodDescriptionrun(org.apache.hc.core5.concurrent.FutureCallback<Result<WeaviateObject>> callback) withClassName(String className) withConsistencyLevel(String consistencyLevel) withMultiVectors(Map<String, Float[][]> multiVectors) withProperties(Map<String, Object> properties) withTenant(String tenant) withVector(Float[] vector) withVectors(Map<String, Float[]> vectors) Methods inherited from class io.weaviate.client.base.AsyncBaseClient
getRequest, sendDeleteRequest, sendDeleteRequest, sendGetRequest, sendGetRequest, sendHeadRequest, sendHeadRequest, sendPatchRequest, sendPatchRequest, sendPostRequest, sendPostRequest, sendPutRequest, sendPutRequestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.weaviate.client.base.AsyncClientResult
run
-
Constructor Details
-
ObjectCreator
public ObjectCreator(org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient client, Config config, AccessTokenProvider tokenProvider, ObjectsPath objectsPath)
-
-
Method Details
-
withID
-
withClassName
-
withConsistencyLevel
-
withTenant
-
withProperties
-
withVector
-
withVectors
-
withMultiVectors
-
run
public Future<Result<WeaviateObject>> run(org.apache.hc.core5.concurrent.FutureCallback<Result<WeaviateObject>> callback) - Specified by:
runin interfaceAsyncClientResult<WeaviateObject>
-