Enum Class WeaviateConfigurations
java.lang.Object
java.lang.Enum<WeaviateConfigurations>
org.eclipse.jnosql.databases.weaviate.communication.WeaviateConfigurations
- All Implemented Interfaces:
Serializable,Comparable<WeaviateConfigurations>,Constable,Supplier<String>
Configuration options supported by the Weaviate driver.
The Weaviate Java client talks to the server through two endpoints: the HTTP (REST) endpoint, used to manage collections and to write objects, and the gRPC endpoint, used to query. Both endpoints are served by the same host, so the driver needs both ports. The default values match a local Weaviate server.
Weaviate has no databases: the database defined by jnosql.vector.database only names the manager,
and the collections are shared by the whole Weaviate instance.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe API key used to authenticate against Weaviate.The distance used by the vector index when a collection is created: seeWeaviateDistance(case-insensitive).The Weaviate gRPC port.The Weaviate host.The Weaviate HTTP port.Whether the connection uses TLS, which makes the driver connect throughhttps.The timeout, in seconds, applied to the Weaviate calls. -
Method Summary
Modifier and TypeMethodDescriptionget()static WeaviateConfigurationsReturns the enum constant of this class with the specified name.static WeaviateConfigurations[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HOST
The Weaviate host. Defaults tolocalhost. -
HTTP_PORT
The Weaviate HTTP port. Defaults to8080. -
GRPC_PORT
The Weaviate gRPC port. Defaults to50051. -
SECURE
Whether the connection uses TLS, which makes the driver connect throughhttps. Defaults tofalse. -
API_KEY
The API key used to authenticate against Weaviate. When absent, the connection is anonymous. -
TIMEOUT
The timeout, in seconds, applied to the Weaviate calls. When absent, the client default is used. -
DISTANCE
The distance used by the vector index when a collection is created: seeWeaviateDistance(case-insensitive). Defaults toWeaviateDistance.COSINE.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
get
-