Uses of Class
com.datastax.astra.client.collections.definition.documents.Document
Packages that use Document
Package
Description
Command Definitions for operating on Collections.
Objects describing the structure of a Document.
Utility classes for commands and operations.
Classes uses to build queries with Sort and Projection.
Top package to interact with Databases and Keyspaces.
Utilities for reflection at runtime
-
Uses of Document in com.datastax.astra.client.collections.commands
Subclasses of Document in com.datastax.astra.client.collections.commandsMethods in com.datastax.astra.client.collections.commands with parameters of type Document -
Uses of Document in com.datastax.astra.client.collections.definition.documents
Methods in com.datastax.astra.client.collections.definition.documents that return DocumentModifier and TypeMethodDescriptionPut the given key/value pair into this Document and return this.Put the given key/value pair into this Document and return this.Document.appendIfNotNull
(String key, Object value) Put the given key/value pair into this Document and return this only if the value is not null.static Document
Document.create()
Create a document with no attributes.static Document
Create a document with an id.Add a hybrid attribute in the documentW<T> Document
Document.id
(T id) Set value for the identifier.Add a vectorize attribute to the document.static Document
Parses a string in MongoDB Extended JSON format to aDocument
Associates the specified value with the specified key in the document.Associates the specified value with the specified key in the document.Removes the mapping for a key from the document if it is present.Document.vector
(float[] vector) Set the vector value.Document.vector
(DataAPIVector vector) Set the vector value.Add a vectorize attribute to the document.Add a vectorize attribute to the document.Add a vectorize attribute to the document. -
Uses of Document in com.datastax.astra.client.core.commands
Fields in com.datastax.astra.client.core.commands declared as DocumentConstructors in com.datastax.astra.client.core.commands with parameters of type Document -
Uses of Document in com.datastax.astra.client.core.hybrid
Constructors in com.datastax.astra.client.core.hybrid with parameters of type Document -
Uses of Document in com.datastax.astra.client.core.query
Subclasses of Document in com.datastax.astra.client.core.query -
Uses of Document in com.datastax.astra.client.databases
Methods in com.datastax.astra.client.databases that return types with arguments of type DocumentModifier 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
.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. -
Uses of Document in com.datastax.astra.internal.reflection
Methods in com.datastax.astra.internal.reflection that return DocumentModifier and TypeMethodDescriptionstatic Document
EntityBeanDefinition.createTableCommand
(String tableName, Class<?> clazz) Create a table command based on the annotated fields.