Uses of Class
com.datastax.astra.client.collections.Collection
Packages that use Collection
Package
Description
Objects representing cursors working with find collection commands.
Top package to interact with Databases and Keyspaces.
-
Uses of Collection in com.datastax.astra.client.collections.commands.cursor
Constructors in com.datastax.astra.client.collections.commands.cursor with parameters of type CollectionModifierConstructorDescriptionCollectionFindAndRerankCursor(Collection<T> dataSource, Filter filter, CollectionFindAndRerankOptions options, Class<R> recordType) Cursor to iterate on the result of a query.CollectionFindCursor(Collection<T> dataSource, Filter filter, CollectionFindOptions options, Class<R> documentType) Cursor to iterate on the result of a query. -
Uses of Collection in com.datastax.astra.client.databases
Methods in com.datastax.astra.client.databases that return CollectionModifier and TypeMethodDescription<T> Collection<T> Database.createCollection(Class<T> documentClass) Creates a new collection based on a class annotated withDataApiCollectionusing default options.<T> Collection<T> Database.createCollection(Class<T> documentClass, CreateCollectionOptions createCollectionOptions) Creates a new collection based on a class annotated withDataApiCollection.Database.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.<T> Collection<T> Database.getCollection(Class<T> documentClass) Retrieves aCollectionobject for a class annotated withDataApiCollection.<T> Collection<T> Database.getCollection(Class<T> documentClass, CollectionOptions options) Retrieves aCollectionobject for a class annotated withDataApiCollectionwith custom options.Database.getCollection(String collectionName) Retrieves aCollectionobject for the specified collection name.Database.getCollection(String collectionName, CollectionOptions collectionOptions) Retrieves aCollectionobject for the specified collection name with the ability to specify custom options.<T> Collection<T> Database.getCollection(String collectionName, Class<T> documentClass) Retrieves aCollectionobject 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 aCollectionobject for the specified collection name with custom options and document type.