Uses of Class
com.datastax.astra.client.collections.definition.CollectionDefinition
Package
Description
Top package to interact with Collections
Objects describing the structure of a collection.
Top package to interact with Databases and Keyspaces.
-
Uses of CollectionDefinition in com.datastax.astra.client.collections
Modifier and TypeMethodDescriptionCollection.getDefinition()
Retrieves the full definition of the collection, encompassing both its name and its configuration options. -
Uses of CollectionDefinition in com.datastax.astra.client.collections.definition
Modifier and TypeMethodDescriptionCollectionDefinition.defaultId
(CollectionDefaultIdTypes type) Builder pattern.CollectionDefinition.indexingAllow
(String... properties) Builder pattern.CollectionDefinition.indexingDeny
(@NonNull String... properties) Builder pattern.CollectionDefinition.vector
(int dimension, @NonNull SimilarityMetric function) Builder pattern.CollectionDefinition.vectorDimension
(int size) Builder pattern.Enable Vectorization within the collection.Enable Vectorization within the collection.CollectionDefinition.vectorize
(String provider, String modeName, String sharedSecretKey, Map<String, Object> parameters) Enable Vectorization within the collection.CollectionDefinition.vectorSimilarity
(@NonNull SimilarityMetric metric) Builder pattern. -
Uses of CollectionDefinition in com.datastax.astra.client.databases
Modifier and TypeMethodDescriptionDatabase.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.