Package io.weaviate.client.v1.batch.api
Class ObjectsBatcher
java.lang.Object
io.weaviate.client.base.BaseClient<ObjectGetResponse[]>
io.weaviate.client.v1.batch.api.ObjectsBatcher
- All Implemented Interfaces:
ClientResult<ObjectGetResponse[]>,Closeable,AutoCloseable
public class ObjectsBatcher
extends BaseClient<ObjectGetResponse[]>
implements ClientResult<ObjectGetResponse[]>, Closeable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class io.weaviate.client.base.BaseClient
serializer -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static ObjectsBatchercreate(HttpClient httpClient, Config config, Data data, ObjectsPath objectsPath, AccessTokenProvider tokenProvider, GrpcVersionSupport grpcVersionSupport, ObjectsBatcher.BatchRetriesConfig batchRetriesConfig) static ObjectsBatchercreateAuto(HttpClient httpClient, Config config, Data data, ObjectsPath objectsPath, AccessTokenProvider tokenProvider, GrpcVersionSupport grpcVersionSupport, ObjectsBatcher.BatchRetriesConfig batchRetriesConfig, ObjectsBatcher.AutoBatchConfig autoBatchConfig) voidflush()static Result<ObjectGetResponse[]>run()withConsistencyLevel(String consistencyLevel) withObject(WeaviateObject object) withObjects(WeaviateObject... objects) Methods inherited from class io.weaviate.client.base.BaseClient
getWeaviateErrorResponse, sendDeleteRequest, sendGetRequest, sendHeadRequest, sendHttpRequest, sendPatchRequest, sendPostRequest, sendPutRequest, toResponse
-
Method Details
-
create
public static ObjectsBatcher create(HttpClient httpClient, Config config, Data data, ObjectsPath objectsPath, AccessTokenProvider tokenProvider, GrpcVersionSupport grpcVersionSupport, ObjectsBatcher.BatchRetriesConfig batchRetriesConfig) -
createAuto
public static ObjectsBatcher createAuto(HttpClient httpClient, Config config, Data data, ObjectsPath objectsPath, AccessTokenProvider tokenProvider, GrpcVersionSupport grpcVersionSupport, ObjectsBatcher.BatchRetriesConfig batchRetriesConfig, ObjectsBatcher.AutoBatchConfig autoBatchConfig) -
withObject
-
withObjects
-
withConsistencyLevel
-
run
- Specified by:
runin interfaceClientResult<ObjectGetResponse[]>
-
flush
public void flush() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
resultFromBatchObjectsReply
public static Result<ObjectGetResponse[]> resultFromBatchObjectsReply(WeaviateProtoBatch.BatchObjectsReply reply, List<WeaviateObject> batch)
-