Uses of Enum
com.datastax.astra.client.model.SimilarityMetric
Package
Description
Entrypoint and core classes for the client.
Domain model classes with
Requests
, Results
, Options
and Iterables
.-
Uses of SimilarityMetric in com.datastax.astra.client
Modifier and TypeMethodDescriptionDatabase.createCollection
(String collectionName, int dimension, SimilarityMetric metric) Create a default new collection for vector.<T> Collection
<T> Database.createCollection
(String collectionName, int dimension, SimilarityMetric metric, Class<T> documentClass) Create a default new collection for vector. -
Uses of SimilarityMetric in com.datastax.astra.client.model
Modifier and TypeMethodDescriptionstatic SimilarityMetric
Build from the key.CollectionOptions.VectorOptions.getSimilarityMetric()
Get metric as an enum.static SimilarityMetric
Returns the enum constant of this type with the specified name.static SimilarityMetric[]
SimilarityMetric.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionCollectionOptions.CollectionOptionsBuilder.vector
(int dimension, @NonNull SimilarityMetric function) Builder pattern.CollectionOptions.CollectionOptionsBuilder.vectorSimilarity
(@NonNull SimilarityMetric function) Builder pattern.