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>

public enum WeaviateConfigurations extends Enum<WeaviateConfigurations> implements 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.

  • Enum Constant Details

    • HOST

      public static final WeaviateConfigurations HOST
      The Weaviate host. Defaults to localhost.
    • HTTP_PORT

      public static final WeaviateConfigurations HTTP_PORT
      The Weaviate HTTP port. Defaults to 8080.
    • GRPC_PORT

      public static final WeaviateConfigurations GRPC_PORT
      The Weaviate gRPC port. Defaults to 50051.
    • SECURE

      public static final WeaviateConfigurations SECURE
      Whether the connection uses TLS, which makes the driver connect through https. Defaults to false.
    • API_KEY

      public static final WeaviateConfigurations API_KEY
      The API key used to authenticate against Weaviate. When absent, the connection is anonymous.
    • TIMEOUT

      public static final WeaviateConfigurations TIMEOUT
      The timeout, in seconds, applied to the Weaviate calls. When absent, the client default is used.
    • DISTANCE

      public static final WeaviateConfigurations DISTANCE
      The distance used by the vector index when a collection is created: see WeaviateDistance (case-insensitive). Defaults to WeaviateDistance.COSINE.
  • Method Details

    • values

      public static WeaviateConfigurations[] 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

      public static WeaviateConfigurations valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • get

      public String get()
      Specified by:
      get in interface Supplier<String>