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.Document.appendIfNotNull
(String key, Object value) Put the given key/value pair into this Document and return this only if the value is not nullstatic Document
Document.create()
Create a document with no attributes.static Document
Create a document with an id.<T> Document
Document.id
(T id) Set value for the identifier.static Document
Parses a string in MongoDB Extended JSON format to aDocument
Document.vector
(float[] vector) Set the vector value.Document.vector
(DataAPIVector vector) Set the vector value.Add a vectorize attribute to the document.Methods in com.datastax.astra.client.collections.definition.documents with parameters of type Document -
Uses of Document in com.datastax.astra.client.core.commands
Fields in com.datastax.astra.client.core.commands declared as DocumentMethods in com.datastax.astra.client.core.commands with parameters of type DocumentModifier and TypeMethodDescriptionBuilder pattern, update sort.Constructors in com.datastax.astra.client.core.commands 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.