Interface CollectionMethods
- All Known Subinterfaces:
QDrantHttpClient
- All Known Implementing Classes:
AbstractQDrantClient,QDrantHttpClientImpl
public interface CollectionMethods
API methods which are used to interact with collections.
-
Method Summary
Modifier and TypeMethodDescriptioncreateCollection(String collectionName, CollectionCreateRequest request) Create new collection with given parameters.createCollectionIndexField(String collectionName, CollectionCreateIndexFieldRequest request, boolean wait) Create index for field in collection.deleteCollection(String collectionName, int timeout) Drop collection and all associated data.deleteCollectionIndexField(String collectionName, String fieldName, boolean wait) Delete field index for collection.Get list name of all existing collections.loadCollection(String collectionName) Get detailed information about specified existing collection.updateCollection(String collectionName, CollectionUpdateRequest request, int timeout) Update parameters of the existing collection.updateCollectionAliases(String collectionName, CollectionUpdateAliasesRequest request, int timeout) Update aliases of the collections.
-
Method Details
-
listCollections
QDrantClientRequest<CollectionListResponse> listCollections()Get list name of all existing collections.- Returns:
-
loadCollection
Get detailed information about specified existing collection.- Parameters:
collectionName-- Returns:
-
createCollection
QDrantClientRequest<GenericBooleanStatusResponse> createCollection(String collectionName, CollectionCreateRequest request) Create new collection with given parameters.- Parameters:
collectionName-request-- Returns:
-
updateCollection
QDrantClientRequest<GenericBooleanStatusResponse> updateCollection(String collectionName, CollectionUpdateRequest request, int timeout) Update parameters of the existing collection.- Parameters:
collectionName-request-timeout-- Returns:
-
deleteCollection
QDrantClientRequest<GenericBooleanStatusResponse> deleteCollection(String collectionName, int timeout) Drop collection and all associated data.- Parameters:
collectionName-timeout-- Returns:
-
updateCollectionAliases
QDrantClientRequest<GenericBooleanStatusResponse> updateCollectionAliases(String collectionName, CollectionUpdateAliasesRequest request, int timeout) Update aliases of the collections.- Parameters:
collectionName-request-timeout-- Returns:
-
createCollectionIndexField
QDrantClientRequest<CollectionIndexFieldResponse> createCollectionIndexField(String collectionName, CollectionCreateIndexFieldRequest request, boolean wait) Create index for field in collection.- Parameters:
collectionName-request-wait-- Returns:
-
deleteCollectionIndexField
QDrantClientRequest<CollectionIndexFieldResponse> deleteCollectionIndexField(String collectionName, String fieldName, boolean wait) Delete field index for collection.- Parameters:
collectionName-fieldName-wait-- Returns:
-