Uses of Class
com.datastax.astra.client.model.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
Modifier 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
Modifier and TypeClassDescriptionclass
Filter Builder.class
Encore the update 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.static Document
Sorts.vector
(float[] embeddings) Build a sort clause with a vector.Add a vectorize attribute to the document.static Document
Build a sort clause with vectorize.Modifier 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. -
Uses of Document in com.datastax.astra.internal.utils