Uses of Class
com.datastax.astra.client.collections.definition.documents.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
-
Uses of Document in com.datastax.astra.client.collections.definition.documents
Modifier 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. -
Uses of Document in com.datastax.astra.client.core.commands
Modifier and TypeMethodDescriptionBuilder pattern, update sort. -
Uses of Document in com.datastax.astra.client.core.query
-
Uses of Document 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
.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
Modifier and TypeMethodDescriptionstatic Document
EntityBeanDefinition.createTableCommand
(String tableName, Class<?> clazz) Create a table command based on the annotated fields.