Uses of Class
com.datastax.astra.client.model.Document
Packages that use Document
Package
Description
Entrypoint and core classes for the client.
Domain model classes with
Requests, Results, Options and Iterables.Internal technical classes for low-level utilities
-
Uses of Document in com.datastax.astra.client
Methods in com.datastax.astra.client that return types with arguments of type DocumentModifier and TypeMethodDescriptionDatabase.createCollection(String collectionName) Create a new collection with the given name.Database.createCollection(String collectionName, int dimension, SimilarityMetric metric) Create a default new collection for vector.Database.createCollection(String collectionName, CollectionOptions collectionOptions) Create a new collection with the given name.Database.createCollection(String collectionName, CollectionOptions collectionOptions, CommandOptions<?> commandOptions) Create a new collection with the given name.Database.getCollection(String collectionName) Gets a collection. -
Uses of Document in com.datastax.astra.client.model
Subclasses of Document in com.datastax.astra.client.modelModifier and TypeClassDescriptionclassFilter Builder.classEncore the update documentFields in com.datastax.astra.client.model declared as DocumentMethods in com.datastax.astra.client.model 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 DocumentDocument.create()Create a document with no attributes.static DocumentCreate a document with an id.<T> DocumentDocument.id(T id) Set value for the identifier.static DocumentParses a string in MongoDB Extended JSON format to aDocumentDocument.vector(float[] vector) Set the vector value.static DocumentSorts.vector(float[] embeddings) Build a sort clause with a vector.Add a vectorize attribute to the document.static DocumentBuild a sort clause with vectorize.Methods in com.datastax.astra.client.model with parameters of type DocumentModifier and TypeMethodDescriptionBuilder patternSyntax sugar as delete option is only a sort Could be like Map.of("$vectorize", "command, "field1", 1, "field2", -1);Syntax sugar as delete option is only a sort Could be like Map.of("$vectorize", "command, "field1", 1, "field2", -1);Syntax sugar as delete option is only a sort Could be like Map.of("$vectorize", "command, "field1", 1, "field2", -1);Syntax sugar as delete option is only a sort Could be like Map.of("$vectorize", "command, "field1", 1, "field2", -1);Syntax sugar as delete option is only a sort Could be like Map.of("$vectorize", "command, "field1", 1, "field2", -1);Builder pattern, update sort.Constructors in com.datastax.astra.client.model with parameters of type Document -
Uses of Document in com.datastax.astra.internal.utils
Methods in com.datastax.astra.internal.utils that return Document