Uses of Class
com.datastax.astra.client.Collection
Package
Description
Entrypoint and core classes for the client.
Domain model classes with
Requests
, Results
, Options
and Iterables
.-
Uses of Collection in com.datastax.astra.client
Modifier and TypeMethodDescriptionDatabase.createCollection
(String collectionName) Create a new collection with the given name.Database.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.Database.createCollection
(String collectionName, CollectionOptions collectionOptions) Create a new collection with the given name.Database.createCollection
(String collectionName, CollectionOptions collectionOptions, CommandOptions<?> commandOptions) Create a new collection with the given name.<T> Collection
<T> Database.createCollection
(String collectionName, CollectionOptions collectionOptions, CommandOptions<?> commandOptions, Class<T> documentClass) Create a new collection with the selected options<T> Collection
<T> Database.createCollection
(String collectionName, CollectionOptions collectionOptions, Class<T> documentClass) Create a new collection with the given name.<T> Collection
<T> Database.createCollection
(String collectionName, Class<T> documentClass) Create a new collection with the given name.Database.getCollection
(String collectionName) Gets a collection.<T> Collection
<T> Database.getCollection
(String collectionName, CommandOptions<?> commandOptions, @NonNull Class<T> documentClass) Gets a collection, with a specific default document class.<T> Collection
<T> Database.getCollection
(String collectionName, @NonNull Class<T> documentClass) Gets a collection, with a specific default document class. -
Uses of Collection in com.datastax.astra.client.model
Modifier and TypeFieldDescriptionprotected Collection
<T> PageableIterable.collection
Reference to the collection in use.ModifierConstructorDescriptionDistinctIterable
(Collection<T> collection, String fieldName, Filter filter, Class<F> fieldClass) Constructs an iterable that provides distinct elements from a specified collection, optionally filtered by a given criterion.FindIterable
(Collection<T> collection, Filter filter, FindOptions options) Constructor for a cursor over the elements of the find.