Enum Class MilvusConfigurations

java.lang.Object
java.lang.Enum<MilvusConfigurations>
org.eclipse.jnosql.databases.milvus.communication.MilvusConfigurations
All Implemented Interfaces:
Serializable, Comparable<MilvusConfigurations>, Constable, Supplier<String>

public enum MilvusConfigurations extends Enum<MilvusConfigurations> implements Supplier<String>
Configuration options supported by the Milvus driver.

The Milvus database used by the mapping layer is the one defined by jnosql.vector.database; it is created when it does not exist yet.

  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The consistency level applied to the collections and to every read: STRONG, BOUNDED, SESSION or EVENTUALLY (case-insensitive).
    The Milvus host.
    The maximum length of the text attributes and of text ids, set when a collection is created.
    The metric used by the vector index when a collection is created: see MilvusMetric (case-insensitive).
    The Milvus gRPC port.
    The timeout, in milliseconds, applied to each Milvus call.
    Whether the connection uses TLS, which makes the driver connect through https.
    The token used to authenticate against Milvus, either an API key or user:password.
    The full Milvus URI, such as https://my-cluster.example.com:443.
    The vector dimension used when a collection is created.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • HOST

      public static final MilvusConfigurations HOST
      The Milvus host. Defaults to localhost.
    • PORT

      public static final MilvusConfigurations PORT
      The Milvus gRPC port. Defaults to 19530.
    • TLS

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

      public static final MilvusConfigurations URI
      The full Milvus URI, such as https://my-cluster.example.com:443. When defined, it takes precedence over HOST, PORT and TLS.
    • TOKEN

      public static final MilvusConfigurations TOKEN
      The token used to authenticate against Milvus, either an API key or user:password.
    • TIMEOUT

      public static final MilvusConfigurations TIMEOUT
      The timeout, in milliseconds, applied to each Milvus call. When absent, the client default is used.
    • METRIC

      public static final MilvusConfigurations METRIC
      The metric used by the vector index when a collection is created: see MilvusMetric (case-insensitive). Defaults to MilvusMetric.COSINE.
    • VECTOR_SIZE

      public static final MilvusConfigurations VECTOR_SIZE
      The vector dimension used when a collection is created. When absent, the dimension of the first inserted vector is used.
    • CONSISTENCY

      public static final MilvusConfigurations CONSISTENCY
      The consistency level applied to the collections and to every read: STRONG, BOUNDED, SESSION or EVENTUALLY (case-insensitive). Defaults to STRONG, so a write is visible to the next read.
    • MAX_LENGTH

      public static final MilvusConfigurations MAX_LENGTH
      The maximum length of the text attributes and of text ids, set when a collection is created. Milvus accepts values from 1 to 65535. Defaults to 65535.
  • Method Details

    • values

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