Class QdrantConfiguration
java.lang.Object
org.eclipse.jnosql.databases.qdrant.communication.QdrantConfiguration
- All Implemented Interfaces:
Function<org.eclipse.jnosql.communication.Settings,,org.eclipse.jnosql.communication.semistructured.DatabaseManagerFactory> org.eclipse.jnosql.communication.semistructured.DatabaseConfiguration
public class QdrantConfiguration
extends Object
implements org.eclipse.jnosql.communication.semistructured.DatabaseConfiguration
The Qdrant implementation of
DatabaseConfiguration. It creates a QdrantVectorManagerFactory
from Settings, a configuration map or an existing QdrantClient.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(org.eclipse.jnosql.communication.Settings settings) get(io.qdrant.client.QdrantClient client) Creates aQdrantVectorManagerFactoryfrom aQdrantClient.Creates aQdrantVectorManagerFactoryfrom map configurations
-
Constructor Details
-
QdrantConfiguration
public QdrantConfiguration()
-
-
Method Details
-
get
public QdrantVectorManagerFactory get(Map<String, String> configurations) throws NullPointerExceptionCreates aQdrantVectorManagerFactoryfrom map configurations- Parameters:
configurations- the configurations map- Returns:
- a QdrantVectorManagerFactory instance
- Throws:
NullPointerException- when the configurations is null
-
get
public QdrantVectorManagerFactory get(io.qdrant.client.QdrantClient client) throws NullPointerException Creates aQdrantVectorManagerFactoryfrom aQdrantClient. The factory takes ownership of the client and closes it onQdrantVectorManagerFactory.close().- Parameters:
client- the Qdrant client- Returns:
- a QdrantVectorManagerFactory instance
- Throws:
NullPointerException- when the client is null
-
apply
-