Uses of Class
com.datastax.astra.client.collections.Collection
Package
Description
Objects representing cursors working with find collections commands.
Informations for cursor-based paging.
Top package to interact with Databases and Keyspaces.
-
Uses of Collection in com.datastax.astra.client.collections.commands.cursor
ModifierConstructorDescriptionCollectionCursor
(Collection<T> col, Filter filter, CollectionFindOptions options) Cursor to iterate on the result of a query.CollectionDistinctIterable
(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. -
Uses of Collection in com.datastax.astra.client.core.paging
Modifier and TypeFieldDescriptionprotected Collection
<T> PageableIterable.collection
Reference to the collection in use.ModifierConstructorDescriptionFindIterable
(Collection<T> collection, Filter filter, CollectionFindOptions options) Constructor for a cursor over the elements of the find. -
Uses of Collection in com.datastax.astra.client.databases
Modifier and TypeMethodDescriptionDatabase.createCollection
(String collectionName) Creates a new collection with the default document typeDocument
.Database.createCollection
(String name, CollectionDefinition def) Creates a new collection with a specified definition and the default document typeDocument
.Database.createCollection
(String collectionName, CollectionDefinition collectionDefinition, CreateCollectionOptions createCollectionOptions) Creates a new collection with a specified definition, options, and the default document typeDocument
.<T> Collection
<T> Database.createCollection
(String name, CollectionDefinition def, Class<T> documentClass) Creates a new collection with a specified definition and the specified document class.<T> Collection
<T> Database.createCollection
(String collectionName, CollectionDefinition collectionDefinition, Class<T> documentClass, CreateCollectionOptions createCollectionOptions) Creates a new collection in the database.<T> Collection
<T> Database.createCollection
(String collectionName, Class<T> documentClass) Creates a new collection with the specified document class.Database.getCollection
(String collectionName) Retrieves aCollection
object for the specified collection name.Database.getCollection
(String collectionName, CollectionOptions collectionOptions) Retrieves aCollection
object for the specified collection name with the ability to specify custom options.<T> Collection
<T> Database.getCollection
(String collectionName, Class<T> documentClass) Retrieves aCollection
object for the specified collection name, with the ability to customize the collection behavior using the specifiedCollectionOptions
.<T> Collection
<T> Database.getCollection
(String collectionName, Class<T> documentClass, CollectionOptions options) Retrieves aCollection
object for the specified collection name with custom options and document type.